Bug 175841

Summary: %%post/%%postun: touch top-level icon dir, drop /sbin/ldconfig
Product: [Fedora] Fedora Reporter: Rex Dieter <rdieter>
Component: amarokAssignee: Aurelien Bompard <gauret>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: extras-qa
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-12-15 18:45:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rex Dieter 2005-12-15 17:42:26 UTC
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 17:46:02 UTC
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 17:48:07 UTC
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 18:32:52 UTC
Also, I think amarok now exclusively uses 'hicolor', not crystalsvg icon theme.

Comment 4 Aurelien Bompard 2005-12-15 18:45:23 UTC
Fixed in CVS, thanks Rex.