Closed Bug 1138143 Opened 9 years ago Closed 9 years ago

Passing a URL via xdg-open does not open URL in Firefox 36 but shows default homepage instead

Categories

(Firefox :: Untriaged, defect)

36 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: geoffreydebelie, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0
Build ID: 20150113033800

Steps to reproduce:

1) Upgrade to Firefox 36 on Manjaro Linux which makes use of Xfce
2) Open a link with exo-open while Firefox is set as the default webbrowser:
exo-open http://test.com



Actual results:

Firefox opens the homepage instead of the link. This affects most applications, as xdg-open redirects the call to exo-open which does not work anymore with Firefox 36. Firefox 35 does not contain this problem.


Expected results:

Firefox opens the specified link.
Version: 35 Branch → 36 Branch
I can confirm that "xdg-open http://example.com" only opens the homepage with FF36 on Fedora 21 with XFCE.
Summary: Exo-open stopped working with Firefox 36 → Passing a URL via xdg-open does not open URL in Firefox 36 but shows default homepage instead
This bug is causing trouble with other programs such as xchat which use xdg-open as a backend for opening links, so it's relatively critical.
Firefox 36 droped a very old no op argument called -remote xubuntu still has this in there '/usr/share/xfce4/helpers/firefox.desktop' file remove that and things should work again.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
Hmm by remove i mean edit the firefox.desktop file and remove '-remote' from the command line.
Ok, so just to make sure -- the solution is to edit the last two lines in 
/usr/share/xfce4/helpers/firefox.desktop 
which are currently

  X-XFCE-Commands=%B -remote "openURL(about:blank,new-window)";%B;
  X-XFCE-CommandsWithParameter=%B -remote "openURL(%s)";%B %s;

and should become

  X-XFCE-Commands=%B;
  X-XFCE-CommandsWithParameter=%B %s;

am I right?
(In reply to cousteau from comment #5)
> Ok, so just to make sure -- the solution is to edit the last two lines in 
> /usr/share/xfce4/helpers/firefox.desktop 
> which are currently
> 
>   X-XFCE-Commands=%B -remote "openURL(about:blank,new-window)";%B;
>   X-XFCE-CommandsWithParameter=%B -remote "openURL(%s)";%B %s;
> 
> and should become
> 
>   X-XFCE-Commands=%B;
>   X-XFCE-CommandsWithParameter=%B %s;
> 
> am I right?

Yes! This is confirmed to solve the issue.

I have the same issue with Firefox ESR 91.13.0

xdg-open will only open the homepage

My ~/.local/share/applications/userapp-firefox-R7DMQZ.desktop looks as below:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=true
Exec=firefox %f
Name=firefox
Comment=Benutzerdefinition für firefox

You need to log in before you can comment on or make changes to this bug.