[GH-ISSUE #3217] --private creates empty dirs on $HOME #2016

Closed
opened 2026-05-05 08:41:02 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @aleprovencio on GitHub (Feb 10, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3217

Hello,
even though running something like firejail --private=/home/aleprovencio/sandbox/ electrum will correctly use the private directory, it also creates an empty /home/aleprovencio/.electrum which will remain after the application closes.

Is this normal behavior? Is there a way to prevent it?

Originally created by @aleprovencio on GitHub (Feb 10, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3217 Hello, even though running something like `firejail --private=/home/aleprovencio/sandbox/ electrum` will correctly use the private directory, it also creates an empty `/home/aleprovencio/.electrum` which will remain after the application closes. Is this normal behavior? Is there a way to prevent it?
Author
Owner

@ghost commented on GitHub (Feb 11, 2020):

Is this normal behavior?

It is 'normal' behavior yes, because of the mkdir ${HOME}/.electrum in the default profile.

Is there a way to prevent it?

You could try adding ignore mkdir ${HOME}/.electrum in a ~/.config/firejail/electrum.local file. Alternatively you could copy electrum.profile from /etc/firejail into ~/.config/firejail/electrum.profile and comment that line out. Just remember that future firejail updates might bring changes to the defaults and 'break' your workaround.

<!-- gh-comment-id:584426877 --> @ghost commented on GitHub (Feb 11, 2020): > Is this normal behavior? It is 'normal' behavior yes, because of the [mkdir ${HOME}/.electrum](https://github.com/netblue30/firejail/blob/master/etc/electrum.profile#L23) in the default profile. > Is there a way to prevent it? You could try adding `ignore mkdir ${HOME}/.electrum` in a ~/.config/firejail/electrum.local file. Alternatively you could copy electrum.profile from /etc/firejail into ~/.config/firejail/electrum.profile and comment that line out. Just remember that future firejail updates might bring changes to the defaults and 'break' your workaround.
Author
Owner

@aleprovencio commented on GitHub (Feb 11, 2020):

That's awesome, thank you

<!-- gh-comment-id:584427868 --> @aleprovencio commented on GitHub (Feb 11, 2020): That's awesome, thank you
Author
Owner

@rusty-snake commented on GitHub (Feb 11, 2020):

#903

<!-- gh-comment-id:584605820 --> @rusty-snake commented on GitHub (Feb 11, 2020): #903
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#2016
No description provided.