Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 74999

Summary: dev-util/poseidonCE .desktop file cleanup
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal CC: zx
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: poseidonCE-3.0.1.ebuild
Patch over 3.0.1 ebuild.
poseidonCE-3.0.1.ebuild
Patch over 3.0.1 ebuild (updated)

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2004-12-19 19:18:15 UTC
Currently poseidonCE ebuild install a non-valid .desktop file when the kde use flag is set. This make it not appear on kde's menu.
Also it installs it into the kde-dir (which depends on the slot) instead than in the /usr/share directory (as other applications do).
Also, it installs icon and desktop file if one of gnome or kde support is requested (so it request to select a support).

The attached ebuild creates a single standard desktop file without GNOME or KDE extensions, and places it into /usr/share/applications, where both KDE and GNOME (and also desktop environments afaik) can look at it.
This removes the need of having the gnome and kde use-flags, installing always the icon and the desktop entry.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2004-12-19 19:18:49 UTC
Created attachment 46393 [details]
poseidonCE-3.0.1.ebuild
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2004-12-19 19:19:40 UTC
Created attachment 46394 [details, diff]
Patch over 3.0.1 ebuild.

Also attached the patch because it seems to be a pretty small change.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2004-12-19 20:07:06 UTC
Created attachment 46402 [details]
poseidonCE-3.0.1.ebuild

I was hacking around with desktop-file-utils from fd.o and I found that there
was a little omission on the .desktop file categories. Now the desktop file is
fd.o compliant.

Also, seems like azureus make the .desktop file in the files/ subdir, now I'm
wondering which of the two is the better solution. If someone tells me to do
the .desktop directly I can do it immediatly (seems to me like a cleaner
solution).

Patch over current ebuild follow.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2004-12-19 20:07:52 UTC
Created attachment 46403 [details, diff]
Patch over 3.0.1 ebuild (updated)
Comment 5 Thomas Matthijs (RETIRED) gentoo-dev 2004-12-21 09:23:36 UTC
maybe it would be better to use make_desktop_entry from eutils.eclass?
Comment 6 Thomas Matthijs (RETIRED) gentoo-dev 2004-12-22 04:31:28 UTC
changed ebuild to use make_desktop_entry, let me know if it doesn't work right