! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
opera-browser.desktop doesn't work with opera >= 10.60
Status:
RESOLVED: FIXED

Comments

Description Samuli Suominen 2010-08-05 22:07:58 CEST
Copy and paste from http://bugs.gentoo.org/show_bug.cgi?id=327081 :

-- cut --

When setting Opera as the default browser in XFCE, the exo-open command (via
/usr/libexec/exo-helper-0.3) uses
/usr/share/xfce4/helpers/opera-browser.desktop, which includes this line:

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

Unfortunately, as of Opera 10.60, this no longer works right if no Opera
process is running yet. Rather than launching a new browser and opening the URL
in it, it ends up launching a browser with no pages open and somehow the
request falls through the cracks and the page never opens (it still works fine
for opening new pages when a browser is already running).

I imagine there's probably an Opera bug in there somewhere (it feels like a
race condition); however, the command listed in the desktop file is ridiculous
overkill anyway, given that simply replacing it with this line works perfectly
in all cases:

X-XFCE-CommandsWithParameter=%B "%s"

because Opera already handles launching of a second process correctly by
sending a message to the original instance!

-- cut --
Comment 1 Samuli Suominen 2010-08-11 16:33:07 CEST
Created attachment 3075 
Fix .desktop entry for Opera 10.60 and higher

Patch against 0.5.3.
Verified the problem and that this solution is working.
Comment 2 Michał Górny 2010-10-01 22:12:02 CEST
Moreover, that solution forces opening the page in new window which is not natural for Opera (and most of the modern browsers). The attached patch correctly opens a new tab.
Comment 3 Nick Schermer editbugs 2010-11-03 18:57:51 CET
Fixed in c8fb10d. Thanks for the patch.

Bug #6604

Reported by:
Samuli Suominen
Reported on: 2010-08-05
Last modified on: 2010-11-03

People

Assignee:
Nick Schermer
CC List:
2 users

Version

Version:
unspecified

Attachments

Additional information