[GH-ISSUE #109] firejail 0.9.32 fails to execute tor browser with --detach argument #68

Closed
opened 2026-05-05 04:56:32 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @pitchforks on GitHub (Oct 29, 2015).
Original GitHub issue: https://github.com/netblue30/firejail/issues/109

tor browser 5.0.3

I run tor browser by navigating to ~/tor-browser_en-US/Browser/ directory, then starting it with ./start-tor-browser

firejail ./start-tor-browser works. firejail ./start-tor-browser --detach does not. It does not work even if I quote the command and its arguments: firejail './start-tor-browser --detach'.

Originally created by @pitchforks on GitHub (Oct 29, 2015). Original GitHub issue: https://github.com/netblue30/firejail/issues/109 tor browser 5.0.3 I run tor browser by navigating to `~/tor-browser_en-US/Browser/` directory, then starting it with `./start-tor-browser` `firejail ./start-tor-browser` works. `firejail ./start-tor-browser --detach` does not. It does not work even if I quote the command and its arguments: `firejail './start-tor-browser --detach'`.
gitea-mirror 2026-05-05 04:56:32 -06:00
Author
Owner

@netblue30 commented on GitHub (Oct 30, 2015):

Indeed, I can only start it as "firejail Browser/start-tor-browser". I think I have a more general problem with processes detaching from the terminal. Thank you for the bug report.

<!-- gh-comment-id:152530489 --> @netblue30 commented on GitHub (Oct 30, 2015): Indeed, I can only start it as "firejail Browser/start-tor-browser". I think I have a more general problem with processes detaching from the terminal. Thank you for the bug report.
Author
Owner

@netblue30 commented on GitHub (Oct 30, 2015):

Workaround:

Tor browser --detach option uses bash disown feature to prevent the browser from shutting down when the terminal is closed. The workaround is to apply disown directly to firejail:

$ cd tor-browser_en-US
$ firejail Browser/start-tor-browser & disown

If you close the terminal now, the browser will continue running.

I am closing the request, it is not a bug. Firejail needs to monitor the process running in the sandbox in order to do some cleanup during shutdown. --detach removes the browser process from firejail's jobs table, and firejail goes ahead and closes the sandbox.

<!-- gh-comment-id:152542604 --> @netblue30 commented on GitHub (Oct 30, 2015): **Workaround:** Tor browser _--detach_ option uses _bash disown_ feature to prevent the browser from shutting down when the terminal is closed. The workaround is to apply disown directly to firejail: ``` $ cd tor-browser_en-US $ firejail Browser/start-tor-browser & disown ``` If you close the terminal now, the browser will continue running. I am closing the request, it is not a bug. Firejail needs to monitor the process running in the sandbox in order to do some cleanup during shutdown. _--detach_ removes the browser process from firejail's jobs table, and firejail goes ahead and closes the sandbox.
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#68
No description provided.