mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5067] 0ad: unable to install mods in-game #2866
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#2866
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CaseOf on GitHub (Mar 23, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5067
Description
In-game when trying to install a mod, I get an error from the game, and the mod is not installed.
Steps to Reproduce
Steps to reproduce the behavior
LC_ALL=C firejail 0ad(LC_ALL=Cto get a consistent output in English that can be understood by everybody)error: Failed to rename '/home/<username>/.local/share/0ad/mods/delenda-est/delenda-est.zip.temp' into '/home/<username>/.cache/0ad/_modscache/delenda-est.zip/delenda-est.zip.zip'Failed to install '/home/<username>/.local/share/0ad/mods/delenda-est/delenda-est.zip.temp'at the top left corner in-game.Expected behavior
Mods should be installed in-game. They are installed in $HOME/.local/share/0ad/mods.
The game should allow you to enable them.
Actual behavior
Mods can’t be installed and error is shown systematically when 0ad is started via firejail.
It fails for all mods.
Behavior without a profile
Without a profile, mods can be installed and enabled.
Additional context
Discussion with Stanislas Dolcini, a 0ad developer on official IRC channel (on QuakeNet, channel #0ad):
Environment
Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Log
LC_ALL=C firejail /path/to/programLC_ALL=C firejail --debug /path/to/programGitHub is complaining that my message is too long:

Then I did post logs in a gist: https://gist.github.com/CaseOf/97d37f52b1f245b57579993ad697623b
@rusty-snake commented on GitHub (Mar 23, 2022):
It is, try
ignore private-cache.32-bit integers are to new 😛
@CaseOf commented on GitHub (Mar 23, 2022):
Tried with
ignore private-cacheand it is still failing.@rusty-snake commented on GitHub (Mar 24, 2022):
How did you tried? You must add
ignore private-cachebeforeprivate-cachein the include-chain.@rusty-snake commented on GitHub (Mar 24, 2022):
Does it work if you comment
whitelist ${HOME}/...andinclude whitelist-common.inc?@CaseOf commented on GitHub (Mar 24, 2022):
I did add it in 0ad.local then it should be set at the beginning
@CaseOf commented on GitHub (Mar 24, 2022):
whitelist-common is already part of the profile
@CaseOf commented on GitHub (Mar 24, 2022):
whitelisting ${HOME} does not help
@rusty-snake commented on GitHub (Mar 24, 2022):
You should comment them.
@rusty-snake commented on GitHub (Apr 2, 2022):
@CaseOf ping
@CaseOf commented on GitHub (Apr 2, 2022):
Sorry for my late answer.
Commenting
whitelist ${HOME}/...andinclude whitelist-common.incmakes it work.I did keep the
ignore private-cache. Tried without this last one and of course it did not work.All combined is required for mods being installed.