GNOME Bugzilla – Bug 343632
Fails to handle %% escape correctly in .desktop files
Last modified: 2006-06-20 08:46:17 UTC
[ forwarded from http://bugs.debian.org/369812 ] According to the .desktop file specification, the combination '%%' in the Exec line in a .desktop file should yield one '%' in the result. libgnomevfs2 doesn't do this, but instead yields the empty string.
Thanks for your bug. Do you have a simple example exhibing that behaviour?
For example, if a .desktop file associated with some extension contains: Exec=touch /tmp/pouet_%% it does not touch /tmp/pouet_% but it does touch the file you double-click on, which is strictly equivalent to: Exec=touch
Quoting the original reporter: AFAICS, the handling of mime types is done in libgnomevfs/gnome-vfs-mime-handlers.c, in the function expand_macro, starting at line 1449. Inspecting the code shows that %% is ignored there, instead of converted to %
Created attachment 66821 [details] [review] Proposed fix for 2.14
Commited to HEAD. Thanks.