[GH-ISSUE #2429] [Tor Browser] ‘./Browser/execdesktop’: No such file or directory #1613

Closed
opened 2026-05-05 08:16:14 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @brainscar on GitHub (Feb 20, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2429

Hi,

Thank you for your hard work.
I was wondering if you could help me with the following issue:

OS: Manjaro Linux
Package used: https://aur.archlinux.org/packages/tor-browser

When I try to run tor browser as such:

firejail --profile=/etc/firejail/start-tor-browser.profile /home/brainscar/.tor-browser/app/start-tor-browser.desktop

I get the following error:

/usr/bin/env: ‘./Browser/execdesktop’: No such file or directory

This is start-tor-browser.desktop:

[Desktop Entry]
Type=Application
Name=Tor Browser
GenericName=Web Browser
Comment=Tor Browser is +1 for privacy and -1 for mass surveillance
Categories=Network;WebBrowser;Security;
Exec=sh -c '"/home/brainscar/.tor-browser/app/Browser/start-tor-browser" --detach || ([ !  -x "/home/brainscar/.tor-browser/app/Browser/start-tor-browser" ] && "$(dirname "$*")"/Browser/start-tor-browser --detach)' dummy %k
X-TorBrowser-ExecShell=./Browser/start-tor-browser --detach
Icon=/home/brainscar/.tor-browser/app/Browser/browser/chrome/icons/default/default128.png
StartupWMClass=Tor Browser

Hope you can help.

Thank you.

Originally created by @brainscar on GitHub (Feb 20, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/2429 Hi, Thank you for your hard work. I was wondering if you could help me with the following issue: **OS:** Manjaro Linux **Package used:** https://aur.archlinux.org/packages/tor-browser When I try to run tor browser as such: `firejail --profile=/etc/firejail/start-tor-browser.profile /home/brainscar/.tor-browser/app/start-tor-browser.desktop` I get the following error: `/usr/bin/env: ‘./Browser/execdesktop’: No such file or directory` This is start-tor-browser.desktop: ``` [Desktop Entry] Type=Application Name=Tor Browser GenericName=Web Browser Comment=Tor Browser is +1 for privacy and -1 for mass surveillance Categories=Network;WebBrowser;Security; Exec=sh -c '"/home/brainscar/.tor-browser/app/Browser/start-tor-browser" --detach || ([ ! -x "/home/brainscar/.tor-browser/app/Browser/start-tor-browser" ] && "$(dirname "$*")"/Browser/start-tor-browser --detach)' dummy %k X-TorBrowser-ExecShell=./Browser/start-tor-browser --detach Icon=/home/brainscar/.tor-browser/app/Browser/browser/chrome/icons/default/default128.png StartupWMClass=Tor Browser ``` Hope you can help. Thank you.
Author
Owner

@rusty-snake commented on GitHub (Feb 20, 2019):

  1. $HOME/.tor-browser/ is not whitelisted, fix: firejail --whitelist=$HOME/.tor-browser --profile=/etc/firejail/start-tor-browser.profile /home/brainscar/.tor-browser/app/start-tor-browser.desktop
  2. You must execute this in $HOME/.tor-browser/app/, fix: firejail --profile=/etc/firejail/start-tor-browser.profile $HOME/.tor-browser/app/Browser/start-tor-browser --detach

Final fix: firejail --whitelist=$HOME/.tor-browser --profile=/etc/firejail/start-tor-browser.profile $HOME/.tor-browser/app/Browser/start-tor-browser --detach

<!-- gh-comment-id:465545751 --> @rusty-snake commented on GitHub (Feb 20, 2019): 1. `$HOME/.tor-browser/` is not whitelisted, fix: `firejail --whitelist=$HOME/.tor-browser --profile=/etc/firejail/start-tor-browser.profile /home/brainscar/.tor-browser/app/start-tor-browser.desktop` 2. You must execute this in `$HOME/.tor-browser/app/`, fix: `firejail --profile=/etc/firejail/start-tor-browser.profile $HOME/.tor-browser/app/Browser/start-tor-browser --detach` **Final fix:** `firejail --whitelist=$HOME/.tor-browser --profile=/etc/firejail/start-tor-browser.profile $HOME/.tor-browser/app/Browser/start-tor-browser --detach`
Author
Owner

@smitsohu commented on GitHub (Feb 20, 2019):

General question: Are the colon characters in start-tor-browser.desktop.profile supposed to be there?

Also I think it would be good if the desktop file was mounted read-only in the sandbox.
Scratch that, the desktop file alone doesn't make much sense. But in a perfect world there would certainly be second, stricter profile where the entire folder ~/.tor-browser is read-only and only some selected paths are writable :)

<!-- gh-comment-id:465545773 --> @smitsohu commented on GitHub (Feb 20, 2019): General question: Are the colon characters in [start-tor-browser.desktop.profile](https://github.com/netblue30/firejail/blob/7c533c9aa5aa9d36d51c512bb175059353eae113/etc/start-tor-browser.desktop.profile) supposed to be there? ~~Also I think it would be good if the desktop file was mounted read-only in the sandbox.~~ Scratch that, the desktop file alone doesn't make much sense. But in a perfect world there would certainly be second, stricter profile where the entire folder ~/.tor-browser is read-only and only some selected paths are writable :)
Author
Owner

@rusty-snake commented on GitHub (Feb 20, 2019):

@smitsohu Yes. I know the issue FJ + TBB well several discussions in german forums, so I'm working on a tutorial right now.

<!-- gh-comment-id:465546721 --> @rusty-snake commented on GitHub (Feb 20, 2019): @smitsohu Yes. I know the issue FJ + TBB well several discussions in german forums, so I'm working on a tutorial right now.
Author
Owner

@SkewedZeppelin commented on GitHub (Feb 20, 2019):

@rusty-snake @brainscar what is wrong with using torbrowser-launcher?

Are the colon characters in start-tor-browser.desktop.profile supposed to be there?

@smitsohu I don't think so

<!-- gh-comment-id:465554540 --> @SkewedZeppelin commented on GitHub (Feb 20, 2019): @rusty-snake @brainscar what is wrong with using torbrowser-launcher? > Are the colon characters in start-tor-browser.desktop.profile supposed to be there? @smitsohu I don't think so
Author
Owner

@rusty-snake commented on GitHub (Feb 20, 2019):

@SkewedZeppelin torbrowser-launcher has IMHO some annoying Issues.

<!-- gh-comment-id:465558877 --> @rusty-snake commented on GitHub (Feb 20, 2019): @SkewedZeppelin torbrowser-launcher has IMHO some annoying Issues.
Author
Owner

@brainscar commented on GitHub (Feb 20, 2019):

Thank you so much @rusty-snake you're awesome. That totally worked.

<!-- gh-comment-id:465803111 --> @brainscar commented on GitHub (Feb 20, 2019): Thank you so much @rusty-snake you're awesome. That totally worked.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1613
No description provided.