Browse Source

try to lauch lnk files automatically

master
Georg Hopp 9 years ago
parent
commit
65f25fc43f
  1. 6
      exelaunch.sh

6
exelaunch.sh

@ -22,10 +22,14 @@ function get_interpreter() {
fi fi
echo -n "/usr/bin/dosbox -exit -conf ${CONFIG}" echo -n "/usr/bin/dosbox -exit -conf ${CONFIG}"
;; ;;
*Windows\ shortcut*) echo -n "/usr/bin/wine start";;
*Windows*) echo -n "/usr/bin/wine";; *Windows*) echo -n "/usr/bin/wine";;
esac 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: # vim: ft=sh ts=4 sw=4:
Loading…
Cancel
Save