Code: Select all
#!/bin/bash
loc="/home/user/path/to/application.exe"
par=`winepath -w "$*"`
wine "$loc" "$par"
exit 0
Code: Select all
#!/bin/bash
loc="/home/user/.wine/drive_c/Winamp/WINAMP.EXE"
par=`winepath -w "$*"`
PULSE_LATENCY_MSEC=30 wine "$loc" "$par"
exit 0
How do I pass over the path to file to Wine applications in shell scripts now? I do need to use shell scripts for some of the applications that I use, because they leave a bunch of background processes open even after closing, and the script takes care of that.