Main menu:

Sponsoring

Please consider a small donation:

 

Also appreciated: support me by clicking the ads (costs nothing) :-)

 

Or you can donate bitcoin:

 

Thanks to TekLinks in Birmingham, AL, for providing colocation and bandwidth.

Page Rank

Fame

FOSS Force Best Blog--2013 Award

Recent posts

Recent comments

About this blog

I am Eric Hameleers, and this is where I think out loud.
More about me.

Search

My Favourites

Slackware

Calendar

September 2014
M T W T F S S
« Aug    
1234567
891011121314
15161718192021
22232425262728
2930  

RSS Alien's Slackware packages

RSS Alien's unofficial KDE Slackware packages

RSS Alien's multilib packages

Meta

GTK icons suddenly missing

Several GTK-based applications are suddenly showing white icons with a red cross inside. Now what!

The update of the “shared-mime-info” package to version 0.70  in slackware-current seems to have changed the mime database format.

Slackware will automatically update the system-wide mime info database on every boot. It runs the command

update-mime-database /usr/share/mime

However, there is also a per-user mime database which is not being updated automatically. The result being that several of your GTK-based applications (such as pidgin and wicd) can not display their icons correctly and worse, starting XFCE will be disastrous because your (now) incompatible mime info database will destroy the XFCE menu and task bar.

Luckily, the solution is easy! You need to run this command once, for every user that logs on to your Slackware-current box:

update-mime-database ~/.local/share/mime

You can add this command to your “/etc/profile” script (which automatically fixes this issue system-wide for all your user accounts) or to your own ~/.profile script (you may have to create this file if it does not yet exist).

In theory, you do not need to run the command more than once but adding it to your profile will guard you against future incompatibilities like this one.

Eric

Comments

Comment from Zwierz
Posted: October 19, 2009 at 09:41

For me it doesn\’t worked. I reinstalled XFCE also (with slackpkg reinstall) and still some of icons missing. I even tried to remove mime directories or clean them up. No luck.Ofcourse I use -current.

Comment from Zwierz
Posted: October 19, 2009 at 12:54

I have noticed even that qgview was unable to display any images too. I think the change in shared-mime-info is far more complicated then this. More library calls – wrong format. Reverting to 0.60 fixed it ofcourse. But that’s not the way. I think there should be more investigation…

Comment from Chris Craig
Posted: October 25, 2009 at 16:31

I found that I also had to run update-mime-database on /usr/local/share/mime for many of my apps.
I think I\’ll add it to rc.M so I don\’t get caught again by this!

Comment from IrquiM
Posted: October 28, 2009 at 21:03

This didn\\\’t work for me, but only had to change the icon theme and it got sorted

Comment from phrag
Posted: November 25, 2009 at 22:57

what Chris Craig said.. i had to additionally run…

update-mime-database /usr/local/share/mime

Thanks guys =)

Write a comment