Try to follow symbolic links in winewrapper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changelog:
	tools/winewrapper:
	Try to follow symbolic links for the executable
-- 
Uwe Bonnes                bon@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


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux