GNOME Bugzilla – Bug 323664
gnome-bluetooth-manager - startup crash.
Last modified: 2006-03-27 22:40:20 UTC
Steps to reproduce: 1. Install gnome-bluetooth 0.7.0 [http://bugs.gentoo.org/show_bug.cgi?id=113497] 2. Run gnome-bluetooth-manager 3. Crash w/ TypeError Stack trace: Traceback (most recent call last):
+ Trace 64512
BTManager ().main ()
self.setup_gui ()
window_icon = gtk.gdk.pixbuf_new_from_file (window_icon_name)
Other information: net-wireless/libbtctl-0.6.0 net-wireless/gnome-bluetooth-0.7.0 dev-python/pygtk-2.8.2 media-libs/gdk-pixbuf-0.22.0-r5 x11-libs/gtk+-2.8.8
BTW, not knowing how to _fix_ it, I commented it out.
I think patch in bug 323170 fixes this error.
--- python/manager.py 7 Aug 2005 16:51:50 -0000 1.15 +++ python/manager.py 16 Dec 2005 16:21:35 -0000 @@ -265,7 +265,7 @@ class BTManager (object): dialog.show () def image_file (self, fname): - for d in [os.path.join (__datadir__, "pixmaps"), "../pixmaps"]: + for d in [os.path.join (__datadir__, "pixmaps"), os.path.join (__datadir__, "../pixmaps")]: if os.path.isfile (os.path.join (d, fname)): return os.path.join (d, fname) return None That's not right. "../pixmaps" is for when manager.py is being run from source. And in pixmaps/Makefile.am: icondir = $(datadir)/pixmaps icon_DATA = blueradio-48.png So blueradio-48.png should have been installed in __datadir__, "pixmaps" Joshua, could you check whether $(datadir)/pixmaps/blueradio-48.png exists?
It exists for me. jpr@castle:~> rpm -ql gnome-bluetooth | grep blueradio /opt/gnome/share/gnome-bluetooth/pixmaps/blueradio.png /opt/gnome/share/gnome-bluetooth/pixmaps/blueradio.svg /opt/gnome/share/pixmaps/blueradio-48.png
Created attachment 58599 [details] [review] Patch to add support for looking in $(datadir)/../pixmaps for icons This patch, rather than replace "../pixmaps", simply adds another path before it, which is the result of joining __datadir__ and "../pixmaps", so that the global share/pixmaps directory in the prefix of installation, is also looked in for blueradio-48.png.
Edd or Bastien, any chance I could commit this patch?
You're right. For some reason I thought __datadir__ would be set to $(datadir), and not $(datadir)/gnome-bluetooth which it is in defs.py
Committed to HEAD just now. Thanks.
*** Bug 333913 has been marked as a duplicate of this bug. ***
*** Bug 332345 has been marked as a duplicate of this bug. ***