SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-05-05 06:39:46

jongtao
Member
Registered: 2013-12-25
Posts: 18

[Solved] GTK Errors after recent update

None of the gtk icons are loading and gtk is spewing locale errors.

Things like:

Failed to load pixbuf file: /usr/share/pnmixer/pixmaps/pnmixer-muted.png: Couldn't recognize the image file format for file '/usr/share/pnmixer/pixmaps/pnmixer-muted.png'

Last edited by jongtao (2014-05-05 07:38:53)

Offline

Help fund CrunchBang, donate to the project!

#2 2014-05-05 07:10:20

jongtao
Member
Registered: 2013-12-25
Posts: 18

Re: [Solved] GTK Errors after recent update

I've narrowed it down a bit. The locale thing is a separate issue.

It seems that I need to use gtk-update-icon-cache-3.0 on the icon folders in /usr/share/icons.
This seemed to fix only some icon issues.

Offline

#3 2014-05-05 07:38:38

jongtao
Member
Registered: 2013-12-25
Posts: 18

Re: [Solved] GTK Errors after recent update

It really seems that the upgrade wiped out the GTK caches for some reason. I had to go in to every folder in the icons directory and update the cache. Some of the icons only appeared after I restarted my computer.

Unless someone finds that this isn't that simple, I'll consider this solved.

Offline

#4 2014-05-05 15:42:44

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: [Solved] GTK Errors after recent update

I fixed the same problem with

gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache

No need to do it for every directory smile

(Depending on your system you may need gdk-pixbuf-query-loaders > /usr/lib/i386-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache)

IIRC you need to run it as root, not with sudo, for some reason

Last edited by damo (2014-05-05 15:44:20)


BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

#5 2014-05-30 02:55:49

bfrd
New Member
From: Portland
Registered: 2014-05-30
Posts: 3

Re: [Solved] GTK Errors after recent update

damo wrote:

I fixed the same problem with

gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache

No need to do it for every directory smile

(Depending on your system you may need gdk-pixbuf-query-loaders > /usr/lib/i386-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache)

IIRC you need to run it as root, not with sudo, for some reason

So in "/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0" exists the executable "gdk-pixbuf-query-loaders" and I'm suppose to basically copy that file into "/usr/lib/x86_64-linux-gnu/2.10.0", but called "loaders.cache"... sorry if my understanding or explanation sounds primitive.

I've checked the two files with diff before doing this, they were different, and then I made a copy of loaders.cache and then moved gdk-pixbuf-query-loaders into 2.10.0/loaders.cache, then re-checked with diff and there are no differences...

I'm just a little worried should I reboot and be wrong about my understanding I would waste some time getting it back to 'normal'.

If I'm okay and you were right, thank you so much for your help!

Offline

#6 2014-05-30 06:34:55

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: [Solved] GTK Errors after recent update

The command runs gdk-pixbuf-query-loaders and writes the output to the loaders.cache file. DON'T copy the file!


BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

#7 2014-05-30 20:15:10

bfrd
New Member
From: Portland
Registered: 2014-05-30
Posts: 3

Re: [Solved] GTK Errors after recent update

Thanks damo, I've put everything back to the way it was before I touched anything.

I'm not a linux wizard yet so could you help me understand how I am suppose to execute "/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders", I've tried ./ as root and it just prints what's in the file, then I've tried sh because historically it makes things go but I don't think it's a .sh because A) it doesn't have .sh extension and B) it comes back with a syntax error saying that there is an unexpected "(".

Thanks again for the help.

Offline

#8 2014-05-31 07:25:44

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: [Solved] GTK Errors after recent update

I logged in as root ( sudo su - ), then ran the command I posted. If that doesn't work then I don't know any more to help... sad


BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

#9 2014-09-07 22:30:06

CrunchieBar
New Member
Registered: 2013-08-18
Posts: 8

Re: [Solved] GTK Errors after recent update

root@Bulldozer:/home/kix# gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
bash: gdk-pixbuf-query-loaders: command not found

Wat. I don't even. Oh no. Gonna install libgdk-pixbuf2.0-dev and see if that helps.


I'm kix_/kix__/kix___ on the #! IRC, come find me smile

Offline

#10 2014-09-07 22:57:51

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: [Solved] GTK Errors after recent update

So find out where it is installed on your system. Mine now has

[damo@cb1-laptop ~]$ locate gdk-pixbuf-query-loaders 
/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders

Then try using that path as the command to write the loaders.cache file


BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo