Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/gtk-2.0 missing breaks GNOME/GDM
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
mexisme
n00b
n00b


Joined: 21 Oct 2004
Posts: 7

PostPosted: Thu Oct 21, 2004 3:09 pm    Post subject: /etc/gtk-2.0 missing breaks GNOME/GDM Reply with quote

I've spent the last few days trying to work this one out:

I've been building Gentoo with Gnome on my workstation, but also using -b or 'quickpkg' to make binary packages so I can install the same on my Laptop without having to build from source twice.
I thought I had made a stupid mistake in installing with 'emerge -KDu' on the laptop because when I tried to start GDM on the laptop I'd get this error:

There was an error loading the theme gentoo-cow
Couldn't recognise the image file format for file '/usr/share/gdm/themes/gentoo-cow/gentoo-cow-alpha.png'

However, I discovered this web-site for Fedora which revealed that because my /etc/gtk-2.0 folder and contents was missing, the GTK/GDK libraries couldn't read any image files!!

http://www.ogre.com/tiki-view_blog_post.php?blogId=3&postId=32

To paraphrase:
Quote:
I've since upgrade a majority of my old RH9 packages to Fedora/devel, with only minor problems. One problem that took me a while to figure out (since my gdm wouldn't start) was that somehow the file /etc/gtk-2.0/gdk-pixbuf.loaders was missing. In my previous installation, this was part of the gdk2 RPM (from Ximian). As it turns out, this file can easily be recreated with a simple command:
Code:
root@thor 301/0 # gdk-pixbuf-query-loaders  > /etc/gtk-2.0/gdk-pixbuf.loaders

Without this file, pretty much every Gnome application (including GDM) will fail, with errors like:

Can not open pixbuf loader module file '/etc/gtk-2.0/gdk-pixbuf.loaders'
Error loading PNG image loader: Image type 'png' is not supported


It seems you can do
Code:
gtk-query-immodules-2.0 >/etc/gtk-2.0/gtk.immodules
for the other (apparently missing) file.

I don't know if this is a bug in one of the packages such that /etc/gtk-2.0/ is created and populated only when building from source, but it was incredibly frustrating!!
Back to top
View user's profile Send private message
shoan
n00b
n00b


Joined: 27 Oct 2003
Posts: 32

PostPosted: Thu Dec 09, 2004 12:40 pm    Post subject: Reply with quote

Thanks. Your post saved me a sleepless night. :D
Back to top
View user's profile Send private message
2lt.chronic
n00b
n00b


Joined: 02 Feb 2005
Posts: 52
Location: york.on.ca

PostPosted: Thu Sep 29, 2005 8:50 pm    Post subject: Reply with quote

This post is from 2004, yet when I was compiling gnome TODAY the same problem existed and had to be rectified using this method. How did something like this slip through the cracks?!
Back to top
View user's profile Send private message
rm
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2004
Posts: 87

PostPosted: Sat Oct 08, 2005 5:10 am    Post subject: Reply with quote

idem dito, emerging gnome-2.12.0

rm
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum