Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256319 - please add .desktop file to media-sound/seq24
Summary: please add .desktop file to media-sound/seq24
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-25 14:46 UTC by Federico Ferri (RETIRED)
Modified: 2009-05-08 15:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Federico Ferri (RETIRED) gentoo-dev 2009-01-25 14:46:55 UTC
diff against media-sound/seq24-0.9.0:


--- /usr/portage/media-sound/seq24/seq24-0.9.0.ebuild	2008-11-29 14:27:14.000000000 +0100
+++ seq24-0.9.0.ebuild	2009-01-25 15:43:14.000000000 +0100
@@ -34,4 +34,6 @@ src_configure() {
 src_install() {
 	emake DESTDIR="${D}" install || die
 	dodoc AUTHORS ChangeLog README RTC SEQ24
+	doicon src/seq24_32.xpm
+	make_desktop_entry seq24 seq24 seq24_32.xpm
 }
Comment 1 Federico Ferri (RETIRED) gentoo-dev 2009-01-25 14:55:43 UTC
fixed in CVS.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-01-25 16:52:39 UTC
The doicon line sounds tremendously _wrong_.

The icon should be installed in /usr/share/icons/hicolor/32x32/apps/seq24.xpm (and if there are other sizes they should be installed too) and the icon name in the .desktop files should be just seq24.

Icon theme specifications are clear on that and I think even desktop-file-validate will throw a warning if the .xpm extension is set explicitly.
Comment 3 Federico Ferri (RETIRED) gentoo-dev 2009-01-25 17:17:55 UTC
how about

       newicon src/seq24_32.xpm seq24.xpm
       make_desktop_entry seq24
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-01-25 18:19:34 UTC
Why not installing the icons in the right place?
Comment 5 Federico Ferri (RETIRED) gentoo-dev 2009-01-25 18:25:09 UTC
1) it's not part of any icon theme
2) ask it to newicon()  ;)
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-01-25 23:24:45 UTC
hicolor is exactly where stuff NOT from icon themes get installed.
As for (do|new)icon, I think I already exposed the flaw some time ago but there it seemed difficult to provide an easy way to guess the size of the icon and so it wasn't possible to keep the same interface.
Comment 7 Federico Ferri (RETIRED) gentoo-dev 2009-01-26 00:28:06 UTC
so, what do you suggest?
using insinto+(do|new)ins instead of (do|new)icon?
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2009-05-08 15:28:55 UTC
Well.. /usr/share/pixmaps is still valid location, changed the ebuild a bit so the desktop entry is following the spec (used newicon, removed the .xpm ending from the Icon= entry)