Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-132

Picard does not acknowledge default browser in XFCE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 0.16
    • 0.16
    • Other
    • None

      from http://bugs.musicbrainz.org/ticket/5299

      When clicking lookup, MusicBrainz.org launches in Firefox. My default browser as set in Preferred Applications is Opera.

      I built it from bzr source, r944.

      Running XFCE (Xubuntu 9.04).

      One of the comments says

      Is the correct way of opening a browser for Linux - irrespective of desktop - not:

      xdg-open http://whatever

      As this links the correct handler for gnome / kde / xfce and any XDG compliant desktop.

      Here's where I came across it:

      http://stackoverflow.com/questions/927151/respecting-reading-the-preferred-applications-settings-in-gnome-linux

      I was able to get good response on my system by editing:

      /usr/lib/python2.6/site-packages/picard/util/webbrowser2.py

      and changing the whole Linux if structure to (as I am on python 2.6):

      webbrowser.register('xdg-open', None, webbrowser.BackgroundBrowser(["xdg-open", "%s"]), update_tryorder=-1)

            Unassigned Unassigned
            nikki nikki
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                0.16