http://bugzilla.opensuse.org/show_bug.cgi?id=1087741
Bug ID: 1087741 Summary: Setting default web browser falls back to previous browser Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.3 Hardware: Other OS: openSUSE 42.3 Status: NEW Severity: Normal Priority: P5 - None Component: KDE Workspace (Plasma) Assignee: opensuse-kde-bugs@opensuse.org Reporter: studio@anchev.net QA Contact: qa-bugs@suse.de Found By: --- Blocker: ---
Created attachment 765672 --> http://bugzilla.opensuse.org/attachment.cgi?id=765672&action=edit screenshot
STR:
1. Install torbrowser-launcher and run the Tor Browser 2. Go to about:preferences and set it as default browser 3. Click to open an HTTP link from another application (tested with claws-mail and newsbeuter)
EXPECTED The link should open in Tor Browser
ACTUAL The link opens in Chromium (the previous default browser). Also chrome://settings/defaultBrowser still shows that "Chromium is your default browser" regardless of:
[~]: cat .config/mimeapps.list | grep browser x-scheme-handler/http=exo-web-browser.desktop x-scheme-handler/https=exo-web-browser.desktop x-scheme-handler/http=exo-web-browser.desktop
As seen on the screenshot both browsers claim to be default simultaneously.
http://bugzilla.opensuse.org/show_bug.cgi?id=1087741 http://bugzilla.opensuse.org/show_bug.cgi?id=1087741#c1
--- Comment #1 from George Anchev studio@anchev.net --- [~]: find ~ -name exo-web-browser.desktop
shows nothing
http://bugzilla.opensuse.org/show_bug.cgi?id=1087741
George Anchev studio@anchev.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Setting default web browser |Setting default web browser |falls back to previous |to TBB falls back to |browser |previous browser
http://bugzilla.opensuse.org/show_bug.cgi?id=1087741 http://bugzilla.opensuse.org/show_bug.cgi?id=1087741#c2
--- Comment #2 from George Anchev studio@anchev.net --- Additionally I notice that there exist 2 different files:
~/.config/mimeapps.list ~/.local/share/applications/mimeapps.list
http://bugzilla.opensuse.org/show_bug.cgi?id=1087741 http://bugzilla.opensuse.org/show_bug.cgi?id=1087741#c3
George Anchev studio@anchev.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Setting default web browser |When set as default web |to TBB falls back to |browser TBB cannot open |previous browser |links clicked in other apps
--- Comment #3 from George Anchev studio@anchev.net --- Further testing:
4. In System Settings -> Default Applications -> Web Browser set explicitly to open http(s) URLs in application torbrowser. 5. Repeat step 3
RESULT:
Now when I click a link (e.g. in claws-mail or in console) Tor Browser starts (if it is not started) but does not open the URL. If it was already started I simply get a message box:
"Tor Browser is already running, but is not responding. To open a new window, you must first close the existing Tor Browser process, or restart your system."
and the URL still doesn't open in it.
Reported upstream: https://trac.torproject.org/projects/tor/ticket/25806
http://bugzilla.opensuse.org/show_bug.cgi?id=1087741 http://bugzilla.opensuse.org/show_bug.cgi?id=1087741#c4
Andreas Stieger astieger@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |astieger@suse.com, | |studio@anchev.net Flags| |needinfo?(studio@anchev.net | |)
--- Comment #4 from Andreas Stieger astieger@suse.com --- Please try xdg-utils-20160610-7.3.1 from one of the below when it appears: http://download.opensuse.org/update/leap/42.3-test/ http://download.opensuse.org/repositories/openSUSE:/Maintenance:/4011
http://bugzilla.opensuse.org/show_bug.cgi?id=1087741 http://bugzilla.opensuse.org/show_bug.cgi?id=1087741#c5
Simon Lees simonf.lees@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |simonf.lees@suse.com
--- Comment #5 from Simon Lees simonf.lees@suse.com --- (In reply to George Anchev from comment #3)
Further testing:
- In System Settings -> Default Applications -> Web Browser set explicitly
to open http(s) URLs in application torbrowser. 5. Repeat step 3
RESULT:
Now when I click a link (e.g. in claws-mail or in console) Tor Browser starts (if it is not started) but does not open the URL. If it was already started I simply get a message box:
"Tor Browser is already running, but is not responding. To open a new window, you must first close the existing Tor Browser process, or restart your system."
and the URL still doesn't open in it.
Reported upstream: https://trac.torproject.org/projects/tor/ticket/25806
What you did in 4 is the correct approach for KDE, xdg-utils will look at those settings rather then the other mimetype ones, if tor-browser is being opened but the page isn't loaded that seems more like an issue with its handling of command line params or its desktop file is setup to handle them wrongly, especially if chromium and firefox will open them when they are the default.
http://bugzilla.opensuse.org/show_bug.cgi?id=1087741 http://bugzilla.opensuse.org/show_bug.cgi?id=1087741#c6
George Anchev studio@anchev.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(studio@anchev.net | |) |
--- Comment #6 from George Anchev studio@anchev.net ---
seems more like an issue with its handling of command line params
That is also what I understand from:
https://trac.torproject.org/projects/tor/ticket/12763
https://github.com/micahflee/torbrowser-launcher/issues/157#issuecomment-101...
Andreas,
Considering that TBB itself seems patched deliberately to prevent opening URLs from command line maybe we should assume it is not a bug but a feature?
http://bugzilla.opensuse.org/show_bug.cgi?id=1087741 http://bugzilla.opensuse.org/show_bug.cgi?id=1087741#c7
Andreas Stieger astieger@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX
--- Comment #7 from Andreas Stieger astieger@suse.com --- (In reply to George Anchev from comment #6)
Considering that TBB itself seems patched deliberately to prevent opening URLs from command line maybe we should assume it is not a bug but a feature?
Okay.