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

Picard does not acknowledge default browser in XFCE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 0.16
    • Fix Version/s: 0.16
    • Component/s: Other
    • Labels:
      None

      Description

      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)

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                0.16