I decided to try this autopackage thing out. It works much like Benny's installers do. However, the gaim.autopackage I used includes a modified .desktop file. This .desktop file includes not only the Gaim entry, but menu entries for verifying and removing the gaim package. Only the "Remove Package" option appeared in the autogenerated system menu. Upon playing with the file, I could make the Gaim entry appear by removing the "Remove" and "Verify" [Desktop Action] entries from gaim.desktop A quick perusal of the spec shows this to be a valid, if apparently rare, configuration, as show at http://standards.freedesktop.org/desktop-entry-spec/latest/apa.html Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 237 The gaim.desktop file causing the problem
That example attached to the spec is weird: if you read through the spec, they only define the "Desktop Entry" group, and then say you can add your own groups using the "X-PRODUCT" notation to show it's non-standard. But then the example .desktop file doesn't do that. Weird. Anyway, there *is* a slight bug here; it looks like Benny's .desktop parser doesn't check for group names. Unfortunately the code is somewhat non-obvious, so I'll have to look at it again later. Note that I have no intention of trying to support anything but stuff in the "Desktop Entry" group, as the names for other non-standard groups are free-form and app authors can use them for basically anything, with no way of clearly defining their purpose.
Perhaps I oughtta drop a bug on both the standard and autopackage then. The essential problem is that additional entries block Gaim from showing up in the menu. I presume that fixing the group names bug would resolve that.
(In reply to comment #3) > Perhaps I oughtta drop a bug on both the standard and autopackage then. Or at least bug them (fd.o) to be clearer about what's allowed regarding extra groups in the file. > The essential problem is that additional entries block Gaim from showing up in the menu. I presume > that fixing the group names bug would resolve that. Yep. After I figure out how =p.
Hey Benny - when I last looked at the XfceDesktopEntry class, it looks like it isn't checking only in the "[Desktop Entry]" group, and it's picking up lines from other groups if they appear in the .desktop file after the main group. It wasn't exactly obvious to me how to fix this - could you provide some insight?
Should be fixed in SVN. Please test, since I didn't. Just realised this is Jasper's code, not Benny's =p