Bug 1197611

Summary: xdg-open doesn't work after upgrade to Firefox 36.0
Product: [Fedora] Fedora Reporter: Samo Dadela <samo_dadela>
Component: exoAssignee: Kevin Fenzi <kevin>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 21CC: gecko-bugs-nobody, kevin, nonamedotc, pertusus, rdieter, samo_dadela, stransky, thomas.moschny
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-04 12:36:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Samo Dadela 2015-03-02 08:25:18 UTC
Description of problem:
After upgrading to firefox 36 I noticed that I could not open url's from pidgin. Firefox comes up, but the URL bar is empty. I then tried xdg-open http://url - same happends.

Version-Release number of selected component (if applicable):
firefox-36.0-1.fc21.x86_64
xdg-utils-1.1.0-0.38.rc3.fc21.noarch

How reproducible:
xdg-open http://url.com

Steps to Reproduce:
1. xdg-open http://url.com
2. firefox windows comes up, but url bar is empty
3.

Actual results:
A blank firefox window opens.

Expected results:
A firefox window with the desired page should be opened.

Additional info:

Comment 1 Thomas Moschny 2015-03-02 12:16:14 UTC
Same here, on F20.

firefox --new-window works, however.

Comment 2 Martin Stransky 2015-03-02 12:49:30 UTC
The --remote argument has been removed from Firefox.

Comment 3 Martin Stransky 2015-03-02 12:51:38 UTC
See https://bugzilla.mozilla.org/show_bug.cgi?id=1080319 for details.

Comment 4 Rex Dieter 2015-03-02 13:59:40 UTC
xdg-utils has no code that injects command-line options, --remote in particular.

all it does (essentially), is run the app referenced by:

xdg-mime query default x-scheme-handler/http
or
xdg-settings get default-web-browser


modulo some details depending on which desktop environment you use)


Reporters, can you please post the output from the following 3 commands:

xdg-mime query default x-scheme-handler/http

xdg-settings get default-web-browser

XDG_UTILS_DEBUG_LEVEL=2 xdg-open http://url.com

Comment 5 Samo Dadela 2015-03-02 14:04:19 UTC
$ xdg-mime query default x-scheme-handler/http
firefox.desktop midori.desktop

$ xdg-settings get default-web-browser
firefox.desktop

$ XDG_UTILS_DEBUG_LEVEL=2 xdg-open http://google.com
Selected DE xfce
(blank firefox opens)

Comment 6 redhat 2015-03-02 14:06:29 UTC
$ xdg-mime query default x-scheme-handler/http
firefox.desktop
$ xdg-settings get default-web-browser
firefox.desktop
$ XDG_UTILS_DEBUG_LEVEL=2 xdg-open http://url.com
Selected DE xfce

(firefox with google.com opens, but i literally used url.com)

Comment 7 Rex Dieter 2015-03-03 23:01:27 UTC
I've confirmed xdg-open works for me with firefox-36 after setting firefox to be default browser.

reporter, can you check to see if you may have a custom firefox.desktop under ~/.local/share/applications ?

Comment 8 Rex Dieter 2015-03-04 02:23:11 UTC
Ah, I think I see the problem, I bet this is a dup of bug #1195718 , but looks like I failed to make an update for f20 too (per comment #1).

*** This bug has been marked as a duplicate of bug 1195718 ***

Comment 9 Thomas Moschny 2015-03-04 08:45:25 UTC
Updating to xdg-utils-1.1.0-0.39.rc3.fc20.noarch doesn't help, problem remains the same.

Running xdg-open with strace shows that it calls exo-open, which in turn calls exo-helper-1, which in turn calls
execve("/usr/bin/firefox", ["/usr/bin/firefox", "-remote","openURL(http://url.com)"], [/* 74 vars */])

Re-assign to exo.

Comment 10 Thomas Moschny 2015-03-04 08:51:08 UTC
... and so, most likely a duplicate of 1197313.

*** This bug has been marked as a duplicate of bug 1197313 ***

Comment 11 Rex Dieter 2015-03-04 12:23:04 UTC
No, your issue is still exo-open in this case, no idea why it's trying to use the --remove option

Comment 12 Rex Dieter 2015-03-04 12:23:18 UTC
--remote even :)

Comment 13 Rex Dieter 2015-03-04 12:36:48 UTC
reduping 1197313 , I misread that as the original xdg-utils bug 1195718 , sorry

*** This bug has been marked as a duplicate of bug 1197313 ***

Comment 14 Martin Stransky 2015-03-05 13:14:10 UTC
Upstream decided to revert te change so the -remote options has been added back in firefox-36.0-3.fc23 (see https://bugzilla.mozilla.org/show_bug.cgi?id=1080319)

Comment 15 Samo Dadela 2015-03-12 12:22:02 UTC
So the 'fix' is to wait for firefox to revert back?

Comment 16 Kevin Fenzi 2015-03-12 12:23:54 UTC
(In reply to Samo Dadela from comment #15)
> So the 'fix' is to wait for firefox to revert back?

Or you could install the exo package from updates-testing as noted in bug 1197313 ?