From 65f25fc43fd995093fb184369991b2ba75c57628 Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Thu, 9 Feb 2017 10:06:00 +0100 Subject: [PATCH] try to lauch lnk files automatically --- exelaunch.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: