[GH-ISSUE #6838] vscode: cannot access ~/.local/share/fish/fish_history #3391

Closed
opened 2026-05-05 09:57:43 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @lily-unnecessarily on GitHub (Jul 25, 2025).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6838

Firejailing VSCode results in a terminal that can read bash-related files, but apparently not fish ones. See e.g.

McFly: ~/.local/share/fish/fish_history does not exist or is not readable. Please fix this or set MCFLY_HISTFILE to something else before using McFly.
Originally created by @lily-unnecessarily on GitHub (Jul 25, 2025). Original GitHub issue: https://github.com/netblue30/firejail/issues/6838 Firejailing VSCode results in a terminal that can read `bash`-related files, but apparently not `fish` ones. See e.g. ``` McFly: ~/.local/share/fish/fish_history does not exist or is not readable. Please fix this or set MCFLY_HISTFILE to something else before using McFly. ```
gitea-mirror 2026-05-05 09:57:43 -06:00
Author
Owner

@kmk3 commented on GitHub (Jul 27, 2025):

Basic debugging information is missing; please follow the bug report template:

<!-- gh-comment-id:3124012794 --> @kmk3 commented on GitHub (Jul 27, 2025): Basic debugging information is missing; please follow the bug report template: * <https://github.com/netblue30/firejail/issues/new?template=bug_report.md>
Author
Owner

@lily-unnecessarily commented on GitHub (Jul 28, 2025):

Closing this since I think the issue is in the AppArmor profiles rather than firejail.

<!-- gh-comment-id:3128382163 --> @lily-unnecessarily commented on GitHub (Jul 28, 2025): Closing this since I _think_ the issue is in the AppArmor profiles rather than firejail.
Author
Owner

@kmk3 commented on GitHub (Jul 28, 2025):

Firejailing VSCode results in a terminal that can read bash-related files,
but apparently not fish ones. See e.g.

McFly: ~/.local/share/fish/fish_history does not exist or is not readable. Please fix this or set MCFLY_HISTFILE to something else before using McFly.

Both history files are blocked in disable-common.inc.

You can allow them by adding the following to ~/.config/firejail/code.local:

noblacklist ${HOME}/.bash_history
noblacklist ${HOME}/.local/share/fish/fish_history
<!-- gh-comment-id:3128901061 --> @kmk3 commented on GitHub (Jul 28, 2025): > Firejailing VSCode results in a terminal that can read `bash`-related files, > but apparently not `fish` ones. See e.g. > > ``` > McFly: ~/.local/share/fish/fish_history does not exist or is not readable. Please fix this or set MCFLY_HISTFILE to something else before using McFly. > ``` Both history files are blocked in disable-common.inc. You can allow them by adding the following to ~/.config/firejail/code.local: ``` noblacklist ${HOME}/.bash_history noblacklist ${HOME}/.local/share/fish/fish_history ```
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#3391
No description provided.