a small patch to wineshelllink
Michael Cardenas
michaelc at lindows.com
Sat Feb 16 01:42:12 CST 2002
forgot this:
Changelog
- Added a check for file type to wineshelllink. If the file is an
executable, add "Type=application" to the kde entry.
----- Original Message -----
> From: "Michael Cardenas" <michaelc at lindows.com>
> To: <wine-patches at winehq.com>
> Sent: Thursday, February 14, 2002 3:24 PM
> Subject: a small patch to wineshelllink
>
>
> > 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
> > +
> >
>
>
>
>
More information about the wine-patches
mailing list