a small patch to wineshelllink

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

 



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.
--- 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
+

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

  Powered by Linux