[GH-ISSUE #4] Have include directives in profiles understand ${HOME} and/or relative paths #4

Closed
opened 2026-05-05 04:42:40 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @boltronics on GitHub (Aug 9, 2015).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4

Currently, it's possible to specify:
blacklist ${HOME}/.ssh

However, it's not possible to specify:
include ${HOME}/.config/firejail/disable-mgmt.inc
or (for a file in the same directory as the one doing the include):
include disable-mgmt.inc

Use case: I have all my dotfiles stored in git, and I use GNU Stow to deploy these on systems I use. eg.

~$ cd .dotfiles
~/.dotfiles$ git pull
~/.dotfiles$ stow firejail

I would rather not have my full home directory path hard-coded so I can deploy these same profiles to systems where my home directory is in a different location.

Originally created by @boltronics on GitHub (Aug 9, 2015). Original GitHub issue: https://github.com/netblue30/firejail/issues/4 Currently, it's possible to specify: `blacklist ${HOME}/.ssh` However, it's not possible to specify: `include ${HOME}/.config/firejail/disable-mgmt.inc` or (for a file in the same directory as the one doing the include): `include disable-mgmt.inc` Use case: I have all my dotfiles stored in git, and I use GNU Stow to deploy these on systems I use. eg. ``` ~$ cd .dotfiles ~/.dotfiles$ git pull ~/.dotfiles$ stow firejail ``` I would rather not have my full home directory path hard-coded so I can deploy these same profiles to systems where my home directory is in a different location.
gitea-mirror 2026-05-05 04:42:40 -06:00
Author
Owner

@netblue30 commented on GitHub (Aug 10, 2015):

I'll implement

include ${HOME}/.config/firejail/file.inc

<!-- gh-comment-id:129408952 --> @netblue30 commented on GitHub (Aug 10, 2015): I'll implement include ${HOME}/.config/firejail/file.inc
Author
Owner

@boltronics commented on GitHub (Aug 10, 2015):

Thanks!! Sounds awesome.

<!-- gh-comment-id:129415189 --> @boltronics commented on GitHub (Aug 10, 2015): Thanks!! Sounds awesome.
Author
Owner

@netblue30 commented on GitHub (Aug 10, 2015):

Fixed!

<!-- gh-comment-id:129519640 --> @netblue30 commented on GitHub (Aug 10, 2015): Fixed!
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#4
No description provided.