You are not logged in.
I installed tor-browser-en from the AUR and everything is working great, however I was wondering if there was anyway I could have it show up as its own application when I run it rather than labeling its self as firefox. Under Ubuntu when you run it, it will have its own icon and own spot in the "dock". Under Arch, at least in GNOME 3, it shows up as firefox in the dock. It has its own name and icon to launch it, but when running it labels its self as firefox. Is there anyway to change this without too much trouble?
Offline
if tor browser's WM_CLASS (or possibly WM_NAME) differs from standard firefox, you should be able to fix this with StartupWMClass in tor-browser's .desktop file.
you can use xorg-xprop for checking the WM_CLASS of an application.
If you get it sorted out you should bug the AUR package maintainer to apply this to the package.
Offline
Ok, after some more tinkering I was able to determine that tor is using the firefox.desktop file. It has its own tor-browser-en.desktop file but changing that results in nothing. If I change the firefox.desktop file those changed apply to the tor browser as well. The leads me to beleive that tor is calling its self firefox on a lower level, but I don't have enough know-how to change this. Any ideas?
Offline
binaries don't use .desktop files, .desktop files use binaries.
Is the firefox.desktop you are talking about in /usr/share/applications? Or is it in ~/.local/share/applications?
If it is the former, do you also have firefox installed, and/or what package owns this file?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Ok, in order to figure things out I started by seeing how the Ubuntu version worked and comparing that to the Arch version to see if the Ubuntu scripts had any differences. I couldn't find any so I removed tor browser using pacman and then copied over the Ubuntu version from my Ubuntu partition.
It essentially works like this. First, the
tor-browser-en.desktopcalls
/usr/bin/tor-browser-enthat script checks some things and then proceeds to call
~/.tor-browser-en/start-tor-browserthat script then launches its own version of Firefox which is modified.
I copied all of these files from Ubuntu where they launch as its own application and put them in their respective locations under Arch. It launches and works fine but still calls its self firefox. I don't really know what else to do. Obviously there is some difference in how Unity and GNOME 3 are getting the application name. I would assume Unity is picking up the name from the .desktop file while GNOME 3 is getting the name from the fact that the last script literally launches a firefox app. If anyone else has any other ideas let me know.
Offline
Ok, so it has to be something with the way GNOME 3 handles it. Under KDE it works fine and shows up as its own application, however in GNOME 3 or Cinnamon, it runs as firefox. Anyone know why that might be?
Offline
I got it figured out. Information was gained from this bug report on the Tor website: https://trac.torproject.org/projects/tor/ticket/11102. All you have to do is change the line in '~/.tor-browser-en/start-tor-browser' that starts the browser from
./Browser/firefox -no-remote -profile Data/Browser/profile.default ${@}to
./Browser/firefox -no-remote --class "Tor Browser" -profile Data/Browser/profile.default ${@}by adding
--class "Tor Browser"That is all you have to do and it will resolve the issue. I will be contacting the AUR maintainer with this information.
Offline