Commit 65f25fc43fd995093fb184369991b2ba75c57628

Authored by Georg Hopp
1 parent 1cefac11

try to lauch lnk files automatically

Showing 1 changed file with 5 additions and 1 deletions
... ... @@ -22,10 +22,14 @@ function get_interpreter() {
22 22 fi
23 23 echo -n "/usr/bin/dosbox -exit -conf ${CONFIG}"
24 24 ;;
  25 + *Windows\ shortcut*) echo -n "/usr/bin/wine start";;
25 26 *Windows*) echo -n "/usr/bin/wine";;
26 27 esac
27 28 }
28 29
29   -exec $(get_interpreter "$1") "$@"
  30 +EXE="$1"; shift
  31 +WINEXE="${EXE/${WINEPREFIX}/C:}"
  32 +WINEXE="${WINEXE//\//\\}"
  33 +exec $(get_interpreter "${EXE}") "${WINEXE}" "$@"
30 34
31 35 # vim: ft=sh ts=4 sw=4:
... ...
Please register or login to post a comment