summaryrefslogtreecommitdiff
path: root/app-emulation/wine-staging/files/wine-2.0-multislot-apploader.patch
blob: b336c4f51e836b7f6a062df6b79fff41b4015ac3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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