Setting default web browser to TBB falls back to previous browser

I have filed this as a bug report but still I thought I should ask here in case I am doing something wrong.

STR:

  1. Install torbrowser-launcher and run the Tor Browser
  2. Go to 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.


~]: find ~ -name exo-web-browser.desktop

shows nothing

Additionally I notice that there exist 2 different files:


~/.config/mimeapps.list
~/.local/share/applications/mimeapps.list

Is this really a bug or if not - what would be the proper way to set Tor Browser as default?

Which desktop?

KDE Plasma 5.8.7

Now, I have KDE in Dutch, thus the names below are translated back into English and may differ in what you see, but I hope they will be clear enough.

Thus I assume you have tried to set it in KDE Systemsettings > Personal settings > Applications and there from Standard Applications left > Web Browser at right?

I tried that after reading your post. It was set to: “Open http and https URLs - in an application based on the contents of the URL”. I changed it to the other option: “in the following browser” and selected torbrowser. 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.”

Well, a few things.
You said that you used “Preferences”, but did not explain much about where and what you exactly did. Thus my question for the DE. But now it seems that you did not mean configuring KDE at all. I am wondering which “Preferences” you then used.

When you said KDE, I could have asked “and what exactly did you do?”, but tried to shortcut the discussion by explaining how I would do it.

It seems that indeed KDE now starts your Tor browser when you click on an URL in a KDE application. Thus it works as intended.

Why the Tor browser, other then e.g. FF and Konqueror (and Chrome according to your testimony) is not able to be open a new Tab or Window when an attempt is made to start it again is beyond my knowledge. But I assume it is typical for the Tor browser. Thus I hope you filed your bug report with Tor.

Tor browser’s preferences.

Why the Tor browser, other then e.g. FF and Konqueror (and Chrome according to your testimony) is not able to be open a new Tab or Window when an attempt is made to start it again is beyond my knowledge. But I assume it is typical for the Tor browser. Thus I hope you filed your bug report with Tor.

Not yet as I don’t know if that is right behavior but I will.

See this:
https://tor.stackexchange.com/questions/14471/setting-tor-browser-as-default-in-linux

Reported:

https://trac.torproject.org/projects/tor/ticket/25806

Aha, so it is a feature, not a bug. Thanks for the info!

A comment and FYI

The Tor Browser Bundle is generally what I would always recommend for running Tor, which sets up an alternative Internet Application stack for running apps like its own Tor browser (based on Firefox).

If you want full integration with other Internet applications, you can install and configure them to run using the same onion router network, which means the apps are also routed into Tor’s network, using its default gateway, DNS, name cache, etc. Dong this should set up your apps the way you are asking and should bypass your system, Desktop and other settings.

This is commonly done for apps like email and Internet-based messaging, instructions to set up specific applications can be found in blogs and other Tor documentation.

HTH,
TSU

Yes, I suppose Tails is doing something similar. In this particular case I was simply looking or an easier way to have links clicked and opened directly in TBB but unfortunately this seems not possible.

Yes,
This is exactly why and how Tails automatically launches the “helper apps” as expected and you can do the same on any machine.

TSU