diff --git a/exelaunch.sh b/exelaunch.sh index b596ada..12a0b71 100755 --- a/exelaunch.sh +++ b/exelaunch.sh @@ -22,10 +22,14 @@ function get_interpreter() { fi echo -n "/usr/bin/dosbox -exit -conf ${CONFIG}" ;; + *Windows\ shortcut*) echo -n "/usr/bin/wine start";; *Windows*) echo -n "/usr/bin/wine";; esac } -exec $(get_interpreter "$1") "$@" +EXE="$1"; shift +WINEXE="${EXE/${WINEPREFIX}/C:}" +WINEXE="${WINEXE//\//\\}" +exec $(get_interpreter "${EXE}") "${WINEXE}" "$@" # vim: ft=sh ts=4 sw=4: