FS#11886 - gtk cannot read image files
Attached to Project:
Arch Linux
Opened by Thomas Hoernes (tyr0) - Sunday, 26 October 2008, 10:04 GMT
Last edited by Aaron Griffin (phrakture) - Wednesday, 19 November 2008, 21:09 GMT
Opened by Thomas Hoernes (tyr0) - Sunday, 26 October 2008, 10:04 GMT
Last edited by Aaron Griffin (phrakture) - Wednesday, 19 November 2008, 21:09 GMT
|
Details
Description:
gtk cannot read image files anymore. Gtk application report unrecogniced image files. A lot of applications do not start (e.g. sonata, nitrogen, thunar, mirage, gdm with themes or even Gnome...), others (e.g. medit, geany) start without icons. The problem is discussed here: http://bbs.archlinux.org/viewtopic.php?id=57468 For example: Sonata produces this error: "glib.GError: Unrecognized image file format" gdm, thunar, nitrogen or mirage complain about the image files in the same way. Additional info: * gtk2 2.14.4-1 * glib2 2.18.2-1 Steps to reproduce: - Start one of the applications mentioned above. |
This task depends upon
Closed by Aaron Griffin (phrakture)
Wednesday, 19 November 2008, 21:09 GMT
Reason for closing: Fixed
Wednesday, 19 November 2008, 21:09 GMT
Reason for closing: Fixed
/usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
/usr/bin/gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders
If that doesn't fix your problems, try running this python script with strace and attach the log: (strace -o fs11886.log python fs11886.py)
#!/usr/bin/python
import pygtk
pygtk.require("2.0")
import gtk
import gtk.gdk
print gtk.gdk.pixbuf_new_from_file_at_size("/usr/share/pixmaps/gnome-talk.png", 32, 32)
╭─[thomas::Heraklit]
╰─[12:19]> strace -o fs11886.log python fs11886.py ~
Traceback (most recent call last):
File "fs11886.py", line 6, in <module>
print gtk.gdk.pixbuf_new_from_file_at_size("/usr/share/pixmaps/gnome-talk.png", 32, 32)
glib.GError: Format der Bilddatei unbekannt
The log is in the attachment.
update-mime-database ~/.local/share/mime
export XDG_CONFIG_DIRS="/etc/xdg"export
export XDG_DATA_DIRS="/usr/share:/usr/local/share"
(solution by Alpheth. Thank you!)