Re: [Patch] parse correctly some .desktop file created for KDE
- From: Alexander Larsson <alexl redhat com>
- To: Frederic Crozat <fcrozat mandriva com>
- Cc: gnome-vfs-list gnome org
- Subject: Re: [Patch] parse correctly some .desktop file created for KDE
- Date: Tue, 25 Apr 2006 11:41:11 +0200
On Thu, 2006-04-06 at 17:15 +0200, Frederic Crozat wrote:
> This patch (sorry, it is quite old but I didn't submitted for review on
> the mailing list) fixes parsing some keys in Exec fields for .desktop
> files which are KDE specific.
I'm a bit hesitant to this part:
+ /* URIs were not used, add first one as %f */
+ if (expanded && (uri_list == *uris)) {
+ g_string_append_c (expanded_exec, ' ');
+ expand_macro ('f', expanded_exec, application, uris);
+ }
If we expanded anything (like, say %i) but we didn't consume any uri
(i.e. there was no %u, %f or similar in the exec line) we then (and only
then) append an implicit %f at the end.
Why is this needed? If it is needed, why only when nothing was expanded?
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's a scarfaced dishevelled messiah with a robot buddy named Sparky. She's a
hard-bitten communist Hell's Angel who hides her beauty behind a pair of
thick-framed spectacles. They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]