Olive fails to start when installed with macports

Bug #384536 reported by Francis Hart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar GTK+ Frontends
Fix Released
Medium
Jelmer Vernooij

Bug Description

When installed via macports, olive-gtk fails to start.

The following error message is output:
Traceback (most recent call last):
  File "/opt/local/bin/olive-gtk", line 94, in <module>
    app = OliveGtk()
  File "/opt/local/lib/python2.5/site-packages/bzrlib/plugins/gtk/olive/__init__.py", line 91, in __init__
    self.window = OliveGui(calling_app = self)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/plugins/gtk/olive/window.py", line 37, in __init__
    self.set_icon_list(gtk.gdk.pixbuf_new_from_file(icon_path("oliveicon2.png")),
TypeError: pixbuf_new_from_file() argument 1 must be string, not None

I believe this is because maports installs it under /opt/local, and hence it fails to find an certain file during startup.

I fixed it locally by editing __init__.py, and adding the /opt/local/share/bzr-gtk to the search directories (line ~108):
    def data_basedirs():
        return [os.path.dirname(__file__),
                 "/usr/share/bzr-gtk",
                 "/usr/local/share/bzr-gtk",
                 "/opt/local/share/bzr-gtk"]

Jelmer Vernooij (jelmer)
Changed in bzr-gtk:
assignee: nobody → Jelmer Vernooij (jelmer)
importance: Undecided → Medium
status: New → Fix Committed
Jelmer Vernooij (jelmer)
Changed in bzr-gtk:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.