The forum

setting parameter for make_shortcut

Author Replies
darkeagle Wednesday 1 October 2008 at 21:17
darkeagleAnonymous

I am developing a script for the german game Drakensang.
I would like to set a parameter for the shortcut, but that doesn't work.

Example:
without parameter:
POL_SetupWindow_make_shortcut "Drakensang" "Program Files/Drakensang/" "drakensang.exe" "" "DSA Drakensang"

the file in .PlayOnLinux/configurations/installed is right:
#!/bin/bash
PATH="/home/ds1/.PlayOnLinux/WineVersions/1.1.5Drakensang/usr/bin/:$PATH"
export WINEPREFIX="/home/ds1/.PlayOnLinux/wineprefix/Drakensang"
export WINEDEBUG="-all"
cd "/home/ds1/.PlayOnLinux/wineprefix/Drakensang/drive_c/Program Files/Drakensang"
wine "/home/ds1/.PlayOnLinux/wineprefix/Drakensang/drive_c/Program Files/Drakensang/drakensang.exe" $@



but i want to set -novideo to the shortcut...
so i tried this:
POL_SetupWindow_make_shortcut "Drakensang" "Program Files/Drakensang/" "drakensang.exe -novideo" "" "DSA Drakensang"

but that results in:
#!/bin/bash
PATH="/home/ds1/.PlayOnLinux/WineVersions/1.1.5Drakensang/usr/bin/:$PATH"
export WINEPREFIX="/home/ds1/.PlayOnLinux/wineprefix/Drakensang"
export WINEDEBUG="-all"
cd "/home/ds1/.PlayOnLinux/wineprefix/Drakensang/drive_c/Program Files/Drakensang"
wine "drakensang.exe -novideo" $@




it should be like this:
#!/bin/bash
PATH="/home/ds1/.PlayOnLinux/WineVersions/1.1.5Drakensang/usr/bin/:$PATH"
export WINEPREFIX="/home/ds1/.PlayOnLinux/wineprefix/Drakensang"
export WINEDEBUG="-all"
cd "/home/ds1/.PlayOnLinux/wineprefix/Drakensang/drive_c/Program Files/Drakensang"
wine "/home/ds1/.PlayOnLinux/wineprefix/Drakensang/drive_c/Program Files/Drakensang/drakensang.exe" -novideo $@




Any help would be nice!

Edited by darkeagle

darkeagle Monday 6 October 2008 at 18:07
darkeagleAnonymous

I found the answer myself...

this is the right way:
POL_SetupWindow_make_shortcut "DSADrakensang" "Programme/Drakensang/" "drakensang.exe" "" "DSA Drakensang" "" "-novideo"

There is a need for better documentation, the documentation, thats online uses old functions, that are french...

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmcayonlinux.com