mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2547] Discord issues returned #1640
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#1640
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 @7twin on GitHub (Mar 9, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2547
Version:
firejail version 0.9.59There was a multitude of issues about this already and all had their fixes, but sadly none of them worked for me, whenever I try to open discord with firejail it exits with
execvp: No such file or directoryand no window appears.Starting discord from the start menu makes discord appear, though it won't be listed in
firejail --list, so I checked the path, it seems it gets installed into "/opt/discord/Discord", which is possibly the issue?Some things I remember trying:
firecfg --cleanbefore installing any other versions, to avoid "symlink exists already"@ghost commented on GitHub (Mar 9, 2019):
Have you tried disabling
private-binyet? Looks like that might be missing something.$ firejail --ignore=private-bin discord
If that doesn't help, you can experiment by commenting (disabling) some options in the discord profiles. Due to their layout you'll need to edit /etc/firejail/{discord,Discord,discord-canary,DiscordCanary,discord-common}.profile files.
@7twin commented on GitHub (Mar 9, 2019):
@glitsj16 I haven't tried private-bin ignore yet, but here's what it does if I do:
Regarding trying to comment out random options: that'll take me a while as there seems to be quite a lot of options to go through, but I'll give it a try.
@ghost commented on GitHub (Mar 9, 2019):
@7twin I realize debugging this could take some time indeed. But with a bit luck there might be a chance this could get fixed sooner rather than later, at least if my assumptions are correct.
That message suggests
private-etcneeds acces to a few other files, /etc/group and /etc/passwd in particular. Or it might need login.defs. Commands to try:$ firejail --ignore=private-bin --private-etc=group,passwd discord
$ firejail --ignore=private-bin --private-etc=login.defs discord
@7twin commented on GitHub (Mar 9, 2019):
@glitsj16 first command worked it seems, though the discord log might be interesting:
Though when I then tried the second command it logged:
[Modules] No updates to installre-trying the first one too, so possibly it just worked with both, will give it a more detailed test later today, but that looked promising already, of course the less needs to be allowed for the jail to work the better too.@ghost commented on GitHub (Mar 9, 2019):
@7twin Progress indeed. It might be a good idea to disable private-etc alltogether and comparing the results with a --noprofile run. I'm not very familiar with discord and/or its modules layout, but you seem to be on a promising track here. Would be nice to see these recent discord troubles fixed, happy hunting 😄 .
@7twin commented on GitHub (Mar 9, 2019):
@glitsj16 update:
firejail --ignore=private-bin --private-etc=group,passwd discordfirejail --ignore=private-bin --private-etc=login.defs discordmost often throwsError getpwuid: main.c:250 init_cfg: No such file or directory@ghost commented on GitHub (Mar 18, 2019):
@7twin I'm looking into updating the discord profiles with dropped private-bin/additions to private-etc. That should at least fix things for the basic setup. As to your question about the plugin, the only remark I can add here is that
betterdiscordseems to be abandoned and the AUR page recommends people to use alternative packages. Have you tried any of those suggestions?@7twin commented on GitHub (Mar 18, 2019):
@glitsj16 yes, the regular betterdiscord got abandoned until v2 comes out, in the meantime there is rauenzis fork that he maintains until v2 comes out and I used the Linux installer, mentioned here: https://rauenzi.github.io/BetterDiscordApp/
I think I saw rauenzis fork on AUR too, but I use the script to install it in always.
@ghost commented on GitHub (Apr 13, 2019):
@7twin Adding group, login.defs and password to private-etc in
a1fe101acaautomatically closed this. Feel free to reopen when needed.@7twin commented on GitHub (Apr 13, 2019):
@glitsj16 Thanks, sounds exciting, does this also address the plug in or only vanilla discord?