Does not respect "xdg-open" for links

Bug #863866 reported by Lukas Sabota
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Terminator
Fix Released
Undecided
Unassigned

Bug Description

Hello,

I am running 64 bit Arch Linux with python 2.72 and terminator 0.96. When I hold the CTRL key and click on a link, firefox is opened to display the link. However, when I "xdg-open http://google.com" from the command line, chrome is opened (which is set to be the default browser in XFCE, which uses the xdg fd.o standard).

I'd be happy to provide any additional information to debug and resolve this bug report. I have not gotten a chance to take a look at the source to debug it myself, but I'm not sure if this is a known issue or perhaps a packaging issue that I can resolve.

I've also tried grabbing the source myself from "bzr branch lp:terminator" and running terminator, but I run into the same issue.

Here is the output of "terminator -d" while I open terminator, run "echo "http://google.com"" and click on the link to test the functionality: http://pastebin.com/sT7tXXR2

By the way, terminator rocks!

Tags: firefox links xdg
Revision history for this message
Lukas Sabota (punkrockguy318) wrote :

The gconf key "/desktop/gnome/applications/browser" is also set to "chromium". (I was referring to chromium earlier as my default browser, I apologize for the confusion)

I'm running with GTK2 2.24.6 and PyGTK 2.24.0. I'd be happy to provide any additional information neccessary.

Revision history for this message
hasufell (jd-o) wrote :

terminators primary method to open urls is "gtk.show_uri" which is available since PyGTK 2.14 and now depends on mime-types, not on gconf-settings.

You have to add something like this to your ~/.local/share/applications/defaults.list

[Default Applications]
x-scheme-handler/http=chrome.desktop

if gtk.show_uri is not available or the pygtk version is too old, terminator falls back to xdg-open. If xdg-open fails for any reason it falls back to "webbrowser.open" which uses the BROWSER environment variable.

Revision history for this message
hasufell (jd-o) wrote :

Removes 'gtk.show_uri' method, so xdg-open will always be respected. Still falls back to 'webbrowser.open' if that fails.

Revision history for this message
Chris Jones (cmsj) wrote :

trunk now has a config option to force a specific URL handler, so you can set it to /usr/bin/xdg-open and be done forever. It will be in the next release.

Changed in terminator:
status: New → Fix Committed
Revision history for this message
Lukas Sabota (punkrockguy318) wrote :

Sounds good! Very glad to see this issue addressed and resolved :D

Chris Jones (cmsj)
Changed in terminator:
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.