Try to follow symbolic links in winewrapper

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Fri Jun 14 15:06:25 CDT 2002


Changelog:
	tools/winewrapper:
	Try to follow symbolic links for the executable
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Free Software: If you contribute nothing, expect nothing
--
Index: wine/tools/winewrapper
===================================================================
RCS file: /home/wine/wine/tools/winewrapper,v
retrieving revision 1.2
diff -u -r1.2 winewrapper
--- wine/tools/winewrapper	28 May 2002 22:48:17 -0000	1.2
+++ wine/tools/winewrapper	14 Jun 2002 20:04:37 -0000
@@ -22,10 +22,12 @@
 # first determine the directory that contains the app itself
 
 appdir=""
-case "$0" in
+appname=""
+appname=`readlink "$0"`||"$0"
+case "$appname" in
   */*)
     # $0 contains a path, use it
-    appdir=`dirname "$0"`
+    appdir=`dirname "$appname"`
     ;;
   *)
     # no directory in $0, search in PATH



More information about the wine-patches mailing list