[GH-ISSUE #1199] Where is Downloads folder for --private option? #821

Closed
opened 2026-05-05 06:54:26 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @rieje on GitHub (Apr 6, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1199

Where is Downloads folder for --private option? I want to copy contents I've downloaded to the local filesystem. If I use --private=<DIR>, I can access it, but I can't find it with --private. Or is this not possible? I assumed it is because I can download files and they are still seen by FIrefox. It's not in /tmp.

Originally created by @rieje on GitHub (Apr 6, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1199 Where is Downloads folder for `--private` option? I want to copy contents I've downloaded to the local filesystem. If I use `--private=<DIR>`, I can access it, but I can't find it with `--private`. Or is this not possible? I assumed it is because I can download files and they are still seen by FIrefox. It's not in /tmp.
Author
Owner

@chiraag-nataraj commented on GitHub (Apr 7, 2017):

If I understand your setup correctly, Firefox creates a new Downloads directory inside the temporary home directory. You can even test this out! Go to file:///home/username/ before downloading a file and see that the Downloads directory doesn't exist. Now download a file and go back and refresh that page. You should see that a Downloads directory has appeared.

As for how to get the data out...I suppose you can use firejail's --get option (see the manpage for more details). I personally use whitelist to only allow the directories Firefox absolutely needs so that data transfer is easy.

<!-- gh-comment-id:292401905 --> @chiraag-nataraj commented on GitHub (Apr 7, 2017): If I understand your setup correctly, Firefox creates a new Downloads directory inside the temporary home directory. You can even test this out! Go to [file:///home/username/](file:///home/username/) before downloading a file and see that the Downloads directory doesn't exist. Now download a file and go back and refresh that page. You should see that a Downloads directory has appeared. As for how to get the data out...I suppose you can use `firejail`'s `--get` option (see the manpage for more details). I personally use `whitelist` to only allow the directories Firefox absolutely needs so that data transfer is easy.
Author
Owner

@rieje commented on GitHub (Apr 7, 2017):

--whitelist works with --private? I get:

*** Warning: cannot whitelist Downloads directory
*** 	Any file saved will be lost when the sandbox is closed.
*** 	Please create a proper Downloads directory for your application.
<!-- gh-comment-id:292629022 --> @rieje commented on GitHub (Apr 7, 2017): `--whitelist` works with `--private`? I get: *** Warning: cannot whitelist Downloads directory *** Any file saved will be lost when the sandbox is closed. *** Please create a proper Downloads directory for your application.
Author
Owner

@chiraag-nataraj commented on GitHub (Apr 7, 2017):

No, I use --whitelist instead of --private.

<!-- gh-comment-id:292677628 --> @chiraag-nataraj commented on GitHub (Apr 7, 2017): No, I use `--whitelist` _instead_ of `--private`.
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#821
No description provided.