summaryrefslogtreecommitdiff
path: root/app-emulation/wine-any/files/wine-2.0-multislot-apploader.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/wine-any/files/wine-2.0-multislot-apploader.patch')
-rw-r--r--app-emulation/wine-any/files/wine-2.0-multislot-apploader.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/app-emulation/wine-any/files/wine-2.0-multislot-apploader.patch b/app-emulation/wine-any/files/wine-2.0-multislot-apploader.patch
new file mode 100644
index 00000000..b336c4f5
--- /dev/null
+++ b/app-emulation/wine-any/files/wine-2.0-multislot-apploader.patch
@@ -0,0 +1,14 @@
+diff --git a/tools/wineapploader.in b/tools/wineapploader.in
+index f48d552..14001a0 100755
+--- a/tools/wineapploader.in
++++ b/tools/wineapploader.in
+@@ -20,7 +20,8 @@
+ #
+
+ # determine the app Winelib library name
+-appname=`basename "$0" .exe`.exe
++appname=${0##*/}
++appname="${appname%%-*}.exe"
+
+ # first try explicit WINELOADER
+ if [ -x "$WINELOADER" ]; then exec "$WINELOADER" "$appname" "$@"; fi