Running Ubuntu 16.04 64-bit, I have installed Tor-Browser from Ubuntu Repository (via terminal). But when I run it, it runs as Firefox. While its icon in dash is its own, when it runs, it shows Firefox icon while switching between windows. On the top panel also it shows Firefox web browser instead of Tor-Browser.
This is the current content of /usr/share/applications/torbrowser.desktop
:
[Desktop Entry]
Name=Tor Browser
GenericName=Tor
Comment=Launch Tor Browser
Exec=torbrowser-launcher %u
Terminal=false
Type=Application
Icon=/usr/share/pixmaps/torbrowser.png
Categories=Network;WebBrowser;
(the line related to icon is altered by myself)
If I open a normal Firefox window, both Firefox and Tor-Browser appear under Firefox icon.
Before migrating to 16.04, I didn't have this problem in 15.10 in which I installed Tor-Browser from its website.
The issue is caused by the fact that Tor Browser and Firefox share a string in their
WM_CLASSS
property:If you open a terminal, type
and click on the window of Firefox, you will get:
...and with Tor Browser:
As a result, the
firefox.desktop
file (and its icon in Unity/Dash) assumes the Tor Browser window is "his".How to solve
Run the command:
This will copy the global
torbrowser.desktop
to~/.local/share/applications
, and subsequently open it withgedit
.Now add to the very end of the file the line:
Save and close the file. This way, the Tor Browser's
.deskop
file will recognize its own windows.Log out and back in, and it should be fixed.
One thing to try would be to install Tor Browser from the version on their website: https://www.torproject.org/projects/torbrowser.html.en -- that might fix the issue for you.
If you'd like to get this issue fixed in the official Ubuntu package, I'd recommend filing an official Ubuntu bug against the
torbrowser-launcher
package.