Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253993 - app-text/epdfview: install and use desktop icons
Summary: app-text/epdfview: install and use desktop icons
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: David Shakaryan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-06 17:22 UTC by Andrew Brouwers
Modified: 2009-03-19 22:35 UTC (History)
2 users (show)

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


Attachments
put this file into /usr/share/pixmaps/ and to get an icon (postscript-viewer.png,11.87 KB, image/png)
2009-01-10 13:15 UTC, bb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Brouwers 2009-01-06 17:22:45 UTC
By default, epdfview will not have an icon show up in the menu; this is due to an older call-out in the .desktop entry.

Epdfview does ship its own icons, though not installed by default.  With a few lines added to the ebuild, these can be installed and force the .desktop entry to use them.  That way, the icon should work out of the box for users:

While I still do not quite understand ebuilds, this is basically how it could be done:

# Add icons:
install -d $PKG/usr/share/icons/hicolor/{24x24,32x32,48x48}/apps
install -m644 data/icon_epdfview-24.png "$PKG/usr/share/icons/hicolor/24x24/apps/epdfview.png"
install -m644 data/icon_epdfview-32.png "$PKG/usr/share/icons/hicolor/32x32/apps/epdfview.png"
install -m644 data/icon_epdfview-48.png "$PKG/usr/share/icons/hicolor/48x48/apps/epdfview.png"
 
# Fix path to icons in .desktop file
sed -i 's#Icon=postscript-viewer.png#Icon=epdfview#' $PKG/usr/share/applications/epdfview.desktop

Reproducible: Always

Steps to Reproduce:
1. emerge epdfview
2. view menu stock menu entry
3.
Comment 1 bb 2009-01-10 13:15:00 UTC
Created attachment 177966 [details]
put this file into /usr/share/pixmaps/ and to get an icon
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2009-03-19 22:35:37 UTC
+*epdfview-0.1.7 (19 Mar 2009)
+
+  19 Mar 2009; Peter Alfredsen <loki_val@gentoo.org> +epdfview-0.1.7.ebuild:
+  Bump, bug 261123. Fix icons, bug 253993. Bump also presumably fixes bug
+  188980, since it was fixed in SVN at the time.
+