Bug 175841 - %%post/%%postun: touch top-level icon dir, drop /sbin/ldconfig
%%post/%%postun: touch top-level icon dir, drop /sbin/ldconfig
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: amarok (Show other bugs)
4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Aurelien Bompard
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-12-15 12:42 EST by Rex Dieter
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-12-15 13:45:23 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Rex Dieter 2005-12-15 12:42:26 EST
Per
http://fedoraproject.org/wiki/ScriptletSnippets#head-fc74f078205565f961f6d836b77c3428619c689d

In %post/%postun, you ought to touch the top-level icon dir when
installing/uninstalling icons, doing something like:
touch --no-create %{_datadir}/icons/hicolor || :
Comment 1 Rex Dieter 2005-12-15 12:46:02 EST
While you're at it, I don't think amarok includes any shared libs (anymore?), so
you could probably lose the
/sbin/ldconfig
too.
Comment 2 Rex Dieter 2005-12-15 12:48:07 EST
Here's the %post code (for gtk-update-icon-cache) I use in all my kde apps, you
may find it useful (it's handy for handling multiple icon dirs, just
add/subtract from the 'for icon_theme in ...' line)

for icon_theme in crystalsvg hicolor ; do
  touch --no-create %{_datadir}/icons/${icon_theme} ||:
  gtk-update-icon-cache -q %{_datadir}/icons/${icon_theme} 2> /dev/null ||:
done

Comment 3 Rex Dieter 2005-12-15 13:32:52 EST
Also, I think amarok now exclusively uses 'hicolor', not crystalsvg icon theme.
Comment 4 Aurelien Bompard 2005-12-15 13:45:23 EST
Fixed in CVS, thanks Rex.

Note You need to log in before you can comment on or make changes to this bug.