a small patch to wineshelllink

Michael Cardenas michaelc at lindows.com
Thu Feb 14 17:24:50 CST 2002


I put this patch together, but once I did the diff against the current 
cvs, I see that somebody has already fixed it. Here's a patch that is a 
little more correct.

It checks when an application is creating a desktop link and adds the 
"Type=application" line if the link points to an executable.
-------------- next part --------------
--- wineshelllink	Mon Jan 14 10:32:12 2002
+++ /home/michael/wineshelllink	Thu Feb 14 11:42:29 2002
@@ -70,9 +70,11 @@
 [KDE Desktop Entry]
 Name=$xname
 Exec=wine "$path" -- $args
-Type=Application
 Comment=$descr
 EOF
+
+(file "$path" | grep -q 'MS-DOS executable (EXE)') && echo 'Type=Application'
+
     [ -z "$workdir" ] || echo "Path=\"$workdir\""
     [ -z "$xpmicon" ] || echo "Icon=$xpmicon"
 }
@@ -187,3 +189,4 @@
 fi
 
 exit 0
+


More information about the wine-patches mailing list