[GH-ISSUE #6625] discord: Error: no suitable /usr/bin/discord executable found #3314

Closed
opened 2026-05-05 09:54:20 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @saltiniroberto on GitHub (Jan 21, 2025).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6625

Description

Discord does not work with firejail-git,

Steps to Reproduce

Run in bash:

LC_ALL=C firejail /usr/bin/discord

Expected behavior

Discord starts and operates as when launched outside of firejail.

Actual behavior

Discord doesn't start and outputs the following error:

Error: no suitable discord executable found

Behavior without a profile

With --noprofile, Discord starts and operates as expected.

Additional context

Discord works with firejail version 0.9.72

Environment

  • Name/version/arch of the Linux kernel (uname -srm): Linux 5.15.0-92-generic x86_64
  • Name/version of the Linux distribution (e.g. "Ubuntu 20.04" or "Arch Linux"): Ubuntu 22.04
  • Name/version of the relevant program(s)/package(s) (e.g. "firefox 134.0-1,
    mesa 1:24.3.3-2"): discord stable 360320 (38aca73)
  • Version of Firejail (firejail --version): 0.9.73
  • If you use a development version of firejail, also the commit from which it
    was compiled (git rev-parse HEAD): 1a576d15a9

Checklist

  • The issues is caused by firejail (i.e. running the program by path (e.g. /usr/bin/vlc) "fixes" it).
  • I can reproduce the issue without custom modifications (e.g. globals.local).
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • I have performed a short search for similar issues (to avoid opening a duplicate).
    • I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
  • I used --profile=PROFILENAME to set the right profile. (Only relevant for AppImages)

Log

Output of LC_ALL=C firejail /path/to/program

Reading profile /etc/firejail/discord.profile
Reading profile /etc/firejail/globals.local
Reading profile /etc/firejail/discord-common.profile
Reading profile /etc/firejail/electron-common.profile
Reading profile /etc/firejail/blink-common.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-xdg.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-runuser-common.inc
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
firejail version 0.9.73

Parent pid 97771, child pid 97774
Warning: NVIDIA card detected, nogroups command ignored
Private /opt installed in 0.09 ms
19 programs installed in 27.22 ms
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning fcopy: cannot create symbolic link /etc/alternatives/global-assembly-cache-tool
Warning fcopy: cannot create symbolic link /etc/alternatives/futurize
Warning fcopy: cannot create symbolic link /etc/alternatives/animate-im6
Warning fcopy: cannot create symbolic link /etc/alternatives/c99
Warning fcopy: cannot create symbolic link /etc/alternatives/cli
Warning fcopy: cannot create symbolic link /etc/alternatives/ftp
Warning fcopy: cannot create symbolic link /etc/alternatives/rgview
Warning fcopy: cannot create symbolic link /etc/alternatives/arptables-save
Warning fcopy: cannot create symbolic link /etc/alternatives/mpiCC
Warning fcopy: cannot create symbolic link /etc/alternatives/mpicxx
Warning fcopy: cannot create symbolic link /etc/alternatives/bf_copy
Warning fcopy: cannot create symbolic link /etc/alternatives/bogoutil
Warning fcopy: cannot create symbolic link /etc/alternatives/display-im6
Warning fcopy: cannot create symbolic link /etc/alternatives/cc
Warning fcopy: cannot create symbolic link /etc/alternatives/x-www-browser
Warning fcopy: cannot create symbolic link /etc/alternatives/animate
Warning fcopy: cannot create symbolic link /etc/alternatives/rview
Warning fcopy: cannot create symbolic link /etc/alternatives/convert-im6
Warning fcopy: cannot create symbolic link /etc/alternatives/write
Warning fcopy: cannot create symbolic link /etc/alternatives/bogolexer
Warning fcopy: cannot create symbolic link /etc/alternatives/cpp
Warning fcopy: cannot create symbolic link /etc/alternatives/convert
Warning fcopy: cannot create symbolic link /etc/alternatives/winefile
Warning fcopy: cannot create symbolic link /etc/alternatives/sar
Warning fcopy: cannot create symbolic link /etc/alternatives/xdvi.bin
Warning fcopy: cannot create symbolic link /etc/alternatives/infobrowser
Warning fcopy: cannot create symbolic link /etc/alternatives/import-im6
Warning fcopy: cannot create symbolic link /etc/alternatives/vi
Warning fcopy: cannot create symbolic link /etc/alternatives/x-session-manager
Warning fcopy: cannot create symbolic link /etc/alternatives/composite-im6
Warning fcopy: cannot create symbolic link /etc/alternatives/compare-im6
Warning fcopy: cannot create symbolic link /etc/alternatives/winedbg
Warning fcopy: cannot create symbolic link /etc/alternatives/wineconsole
Warning fcopy: cannot create symbolic link /etc/alternatives/wineserver
Warning fcopy: cannot create symbolic link /etc/alternatives/iptables-save
Warning fcopy: cannot create symbolic link /etc/alternatives/updatedb
Warning fcopy: cannot create symbolic link /etc/alternatives/montage-im6
Warning fcopy: cannot create symbolic link /etc/alternatives/unlzma
Warning fcopy: cannot create symbolic link /etc/alternatives/ip6tables-restore
Warning fcopy: cannot create symbolic link /etc/alternatives/x-window-manager
Warning fcopy: cannot create symbolic link /etc/alternatives/gnuplot
Warning fcopy: cannot create symbolic link /etc/alternatives/strong-name-tool
Warning fcopy: cannot create symbolic link /etc/alternatives/gnome-text-editor
Warning fcopy: cannot create symbolic link /etc/alternatives/pdftk
Warning fcopy: cannot create symbolic link /etc/alternatives/msiexec
Warning fcopy: cannot create symbolic link /etc/alternatives/brave-browser
Warning fcopy: cannot create symbolic link /etc/alternatives/assembly-linker
Warning fcopy: cannot create symbolic link /etc/alternatives/eview
Warning fcopy: cannot create symbolic link /etc/alternatives/ip6tables
Warning fcopy: cannot create symbolic link /etc/alternatives/lzcmp
Warning fcopy: cannot create symbolic link /etc/alternatives/fakeroot
Warning fcopy: cannot create symbolic link /etc/alternatives/drawio
Warning fcopy: cannot create symbolic link /etc/alternatives/pinentry
Warning fcopy: cannot create symbolic link /etc/alternatives/rcp
Warning fcopy: cannot create symbolic link /etc/alternatives/pasteurize
Warning fcopy: cannot create symbolic link /etc/alternatives/automake
Warning fcopy: cannot create symbolic link /etc/alternatives/djview
Warning fcopy: cannot create symbolic link /etc/alternatives/c89
Warning fcopy: cannot create symbolic link /etc/alternatives/montage
Warning fcopy: cannot create symbolic link /etc/alternatives/mpi
Warning fcopy: cannot create symbolic link /etc/alternatives/bf_compact
Warning fcopy: cannot create symbolic link /etc/alternatives/netcat
Warning fcopy: cannot create symbolic link /etc/alternatives/editor
Warning fcopy: cannot create symbolic link /etc/alternatives/compare
Warning fcopy: cannot create symbolic link /etc/alternatives/wineboot
Warning fcopy: cannot create symbolic link /etc/alternatives/wine64
Warning fcopy: cannot create symbolic link /etc/alternatives/regedit
Warning fcopy: cannot create symbolic link /etc/alternatives/stream
Warning fcopy: cannot create symbolic link /etc/alternatives/google-chrome
Warning fcopy: cannot create symbolic link /etc/alternatives/mogrify-im6
Warning fcopy: cannot create symbolic link /etc/alternatives/gview
Warning fcopy: cannot create symbolic link /etc/alternatives/rmt
Warning fcopy: cannot create symbolic link /etc/alternatives/bibtex
Warning fcopy: cannot create symbolic link /etc/alternatives/ebtables
Warning fcopy: cannot create symbolic link /etc/alternatives/mpic++
Warning fcopy: cannot create symbolic link /etc/alternatives/rvim
Warning fcopy: cannot create symbolic link /etc/alternatives/aclocal
Warning fcopy: cannot create symbolic link /etc/alternatives/pico
Warning fcopy: cannot create symbolic link /etc/alternatives/f95
Warning fcopy: cannot create symbolic link /etc/alternatives/lzma
Warning fcopy: cannot create symbolic link /etc/alternatives/python
Warning fcopy: cannot create symbolic link /etc/alternatives/winepath
Warning fcopy: cannot create symbolic link /etc/alternatives/pbr
Warning fcopy: cannot create symbolic link /etc/alternatives/arptables
Warning fcopy: cannot create symbolic link /etc/alternatives/mpifort
Warning fcopy: cannot create symbolic link /etc/alternatives/pager
Warning fcopy: cannot create symbolic link /etc/alternatives/lzdiff
Warning fcopy: cannot create symbolic link /etc/alternatives/nc
Warning fcopy: cannot create symbolic link /etc/alternatives/wine
Warning fcopy: cannot create symbolic link /etc/alternatives/winecfg
Warning fcopy: cannot create symbolic link /etc/alternatives/www-browser
Warning fcopy: cannot create symbolic link /etc/alternatives/stream-im6
Warning fcopy: cannot create symbolic link /etc/alternatives/lzip
Warning fcopy: cannot create symbolic link /etc/alternatives/locate
Warning fcopy: cannot create symbolic link /etc/alternatives/python3
Warning fcopy: cannot create symbolic link /etc/alternatives/ebtables-restore
Warning fcopy: cannot create symbolic link /etc/alternatives/aptitude
Warning fcopy: cannot create symbolic link /etc/alternatives/lzfgrep
Warning fcopy: cannot create symbolic link /etc/alternatives/resource-file-generator
Warning fcopy: cannot create symbolic link /etc/alternatives/rgvim
Warning fcopy: cannot create symbolic link /etc/alternatives/conjure-im6
Warning fcopy: cannot create symbolic link /etc/alternatives/display
Warning fcopy: cannot create symbolic link /etc/alternatives/vim
Warning fcopy: cannot create symbolic link /etc/alternatives/js
Warning fcopy: cannot create symbolic link /etc/alternatives/c-sharp-compiler
Warning fcopy: cannot create symbolic link /etc/alternatives/mpif77
Warning fcopy: cannot create symbolic link /etc/alternatives/mpiexec
Warning fcopy: cannot create symbolic link /etc/alternatives/x-terminal-emulator
Warning fcopy: cannot create symbolic link /etc/alternatives/mt
Warning fcopy: cannot create symbolic link /etc/alternatives/composite
Warning fcopy: cannot create symbolic link /etc/alternatives/js.1.gz
Warning fcopy: cannot create symbolic link /etc/alternatives/iptables
Warning fcopy: cannot create symbolic link /etc/alternatives/c++
Warning fcopy: cannot create symbolic link /etc/alternatives/bogofilter
Warning fcopy: cannot create symbolic link /etc/alternatives/lzless
Warning fcopy: cannot create symbolic link /etc/alternatives/iptables-restore
Warning fcopy: cannot create symbolic link /etc/alternatives/arptables-restore
Warning fcopy: cannot create symbolic link /etc/alternatives/iotop
Warning fcopy: cannot create symbolic link /etc/alternatives/pinentry-x11
Warning fcopy: cannot create symbolic link /etc/alternatives/f77
Warning fcopy: cannot create symbolic link /etc/alternatives/apalache-mc
Warning fcopy: cannot create symbolic link /etc/alternatives/lzgrep
Warning fcopy: cannot create symbolic link /etc/alternatives/vimdiff
Warning fcopy: cannot create symbolic link /etc/alternatives/unrar
Warning fcopy: cannot create symbolic link /etc/alternatives/lzip-compressor
Warning fcopy: cannot create symbolic link /etc/alternatives/telnet
Warning fcopy: cannot create symbolic link /etc/alternatives/bogoupgrade
Warning fcopy: cannot create symbolic link /etc/alternatives/lzip-decompressor
Warning fcopy: cannot create symbolic link /etc/alternatives/ip6tables-save
Warning fcopy: cannot create symbolic link /etc/alternatives/identify-im6
Warning fcopy: cannot create symbolic link /etc/alternatives/dafny
Warning fcopy: cannot create symbolic link /etc/alternatives/rlogin
Warning fcopy: cannot create symbolic link /etc/alternatives/gnome-www-browser
Warning fcopy: cannot create symbolic link /etc/alternatives/evim
Warning fcopy: cannot create symbolic link /etc/alternatives/conjure
Warning fcopy: cannot create symbolic link /etc/alternatives/lzcat
Warning fcopy: cannot create symbolic link /etc/alternatives/bf_tar
Warning fcopy: cannot create symbolic link /etc/alternatives/ex
Warning fcopy: cannot create symbolic link /etc/alternatives/import
Warning fcopy: cannot create symbolic link /etc/alternatives/view
Warning fcopy: cannot create symbolic link /etc/alternatives/rsh
Warning fcopy: cannot create symbolic link /etc/alternatives/lzmore
Warning fcopy: cannot create symbolic link /etc/alternatives/ebtables-save
Warning fcopy: cannot create symbolic link /etc/alternatives/bogotune
Warning fcopy: cannot create symbolic link /etc/alternatives/gvim
Warning fcopy: cannot create symbolic link /etc/alternatives/identify
Warning fcopy: cannot create symbolic link /etc/alternatives/signal-desktop
Warning fcopy: cannot create symbolic link /etc/alternatives/mpif90
Warning fcopy: cannot create symbolic link /etc/alternatives/regsvr32
Warning fcopy: cannot create symbolic link /etc/alternatives/dafny3
Warning fcopy: cannot create symbolic link /etc/alternatives/lzegrep
Warning fcopy: cannot create symbolic link /etc/alternatives/mogrify
Warning fcopy: cannot create symbolic link /etc/alternatives/gvimdiff
Warning fcopy: cannot create symbolic link /etc/alternatives/mpirun
Warning fcopy: cannot create symbolic link /etc/pulse/client.conf.d/01-enable-autospawn.conf
Private /etc installed in 38.53 ms
Base filesystem installed in 41.54 ms
Warning: NVIDIA card detected, nogroups command ignored
Warning: NVIDIA card detected, nogroups command ignored
Child process initialized in 185.06 ms
Error: no suitable /usr/bin/discord executable found

Parent is shutting down, bye...

Output of LC_ALL=C firejail --debug /path/to/program

discord-debug.log

Originally created by @saltiniroberto on GitHub (Jan 21, 2025). Original GitHub issue: https://github.com/netblue30/firejail/issues/6625 ### Description Discord does not work with firejail-git, ### Steps to Reproduce Run in bash: ```sh LC_ALL=C firejail /usr/bin/discord ``` ### Expected behavior Discord starts and operates as when launched outside of firejail. ### Actual behavior Discord doesn't start and outputs the following error: ``` Error: no suitable discord executable found ``` ### Behavior without a profile With `--noprofile`, Discord starts and operates as expected. ## Additional context Discord works with firejail version 0.9.72 ### Environment - Name/version/arch of the Linux kernel (`uname -srm`): Linux 5.15.0-92-generic x86_64 - Name/version of the Linux distribution (e.g. "Ubuntu 20.04" or "Arch Linux"): Ubuntu 22.04 - Name/version of the relevant program(s)/package(s) (e.g. "firefox 134.0-1, mesa 1:24.3.3-2"): discord stable 360320 (38aca73) - Version of Firejail (`firejail --version`): 0.9.73 - If you use a development version of firejail, also the commit from which it was compiled (`git rev-parse HEAD`): 1a576d15a9339b8f70ae3056e2413e58931072d5 ### Checklist - [x] The issues is caused by firejail (i.e. running the program by path (e.g. `/usr/bin/vlc`) "fixes" it). - [x] I can reproduce the issue without custom modifications (e.g. globals.local). - [x] The program has a profile. (If not, request one in `https://github.com/netblue30/firejail/issues/1139`) - [x] The profile (and redirect profile if exists) hasn't already been fixed [upstream](https://github.com/netblue30/firejail/tree/master/etc). - [x] I have performed a short search for similar issues (to avoid opening a duplicate). - [ ] I'm aware of `browser-allow-drm yes`/`browser-disable-u2f no` in `firejail.config` to allow DRM/U2F in browsers. - [ ] I used `--profile=PROFILENAME` to set the right profile. (Only relevant for AppImages) ### Log <details> <summary>Output of <code>LC_ALL=C firejail /path/to/program</code></summary> <p> ``` Reading profile /etc/firejail/discord.profile Reading profile /etc/firejail/globals.local Reading profile /etc/firejail/discord-common.profile Reading profile /etc/firejail/electron-common.profile Reading profile /etc/firejail/blink-common.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-exec.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-xdg.inc Reading profile /etc/firejail/whitelist-common.inc Reading profile /etc/firejail/whitelist-runuser-common.inc Reading profile /etc/firejail/whitelist-usr-share-common.inc Reading profile /etc/firejail/whitelist-var-common.inc firejail version 0.9.73 Parent pid 97771, child pid 97774 Warning: NVIDIA card detected, nogroups command ignored Private /opt installed in 0.09 ms 19 programs installed in 27.22 ms Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set. Warning fcopy: cannot create symbolic link /etc/alternatives/global-assembly-cache-tool Warning fcopy: cannot create symbolic link /etc/alternatives/futurize Warning fcopy: cannot create symbolic link /etc/alternatives/animate-im6 Warning fcopy: cannot create symbolic link /etc/alternatives/c99 Warning fcopy: cannot create symbolic link /etc/alternatives/cli Warning fcopy: cannot create symbolic link /etc/alternatives/ftp Warning fcopy: cannot create symbolic link /etc/alternatives/rgview Warning fcopy: cannot create symbolic link /etc/alternatives/arptables-save Warning fcopy: cannot create symbolic link /etc/alternatives/mpiCC Warning fcopy: cannot create symbolic link /etc/alternatives/mpicxx Warning fcopy: cannot create symbolic link /etc/alternatives/bf_copy Warning fcopy: cannot create symbolic link /etc/alternatives/bogoutil Warning fcopy: cannot create symbolic link /etc/alternatives/display-im6 Warning fcopy: cannot create symbolic link /etc/alternatives/cc Warning fcopy: cannot create symbolic link /etc/alternatives/x-www-browser Warning fcopy: cannot create symbolic link /etc/alternatives/animate Warning fcopy: cannot create symbolic link /etc/alternatives/rview Warning fcopy: cannot create symbolic link /etc/alternatives/convert-im6 Warning fcopy: cannot create symbolic link /etc/alternatives/write Warning fcopy: cannot create symbolic link /etc/alternatives/bogolexer Warning fcopy: cannot create symbolic link /etc/alternatives/cpp Warning fcopy: cannot create symbolic link /etc/alternatives/convert Warning fcopy: cannot create symbolic link /etc/alternatives/winefile Warning fcopy: cannot create symbolic link /etc/alternatives/sar Warning fcopy: cannot create symbolic link /etc/alternatives/xdvi.bin Warning fcopy: cannot create symbolic link /etc/alternatives/infobrowser Warning fcopy: cannot create symbolic link /etc/alternatives/import-im6 Warning fcopy: cannot create symbolic link /etc/alternatives/vi Warning fcopy: cannot create symbolic link /etc/alternatives/x-session-manager Warning fcopy: cannot create symbolic link /etc/alternatives/composite-im6 Warning fcopy: cannot create symbolic link /etc/alternatives/compare-im6 Warning fcopy: cannot create symbolic link /etc/alternatives/winedbg Warning fcopy: cannot create symbolic link /etc/alternatives/wineconsole Warning fcopy: cannot create symbolic link /etc/alternatives/wineserver Warning fcopy: cannot create symbolic link /etc/alternatives/iptables-save Warning fcopy: cannot create symbolic link /etc/alternatives/updatedb Warning fcopy: cannot create symbolic link /etc/alternatives/montage-im6 Warning fcopy: cannot create symbolic link /etc/alternatives/unlzma Warning fcopy: cannot create symbolic link /etc/alternatives/ip6tables-restore Warning fcopy: cannot create symbolic link /etc/alternatives/x-window-manager Warning fcopy: cannot create symbolic link /etc/alternatives/gnuplot Warning fcopy: cannot create symbolic link /etc/alternatives/strong-name-tool Warning fcopy: cannot create symbolic link /etc/alternatives/gnome-text-editor Warning fcopy: cannot create symbolic link /etc/alternatives/pdftk Warning fcopy: cannot create symbolic link /etc/alternatives/msiexec Warning fcopy: cannot create symbolic link /etc/alternatives/brave-browser Warning fcopy: cannot create symbolic link /etc/alternatives/assembly-linker Warning fcopy: cannot create symbolic link /etc/alternatives/eview Warning fcopy: cannot create symbolic link /etc/alternatives/ip6tables Warning fcopy: cannot create symbolic link /etc/alternatives/lzcmp Warning fcopy: cannot create symbolic link /etc/alternatives/fakeroot Warning fcopy: cannot create symbolic link /etc/alternatives/drawio Warning fcopy: cannot create symbolic link /etc/alternatives/pinentry Warning fcopy: cannot create symbolic link /etc/alternatives/rcp Warning fcopy: cannot create symbolic link /etc/alternatives/pasteurize Warning fcopy: cannot create symbolic link /etc/alternatives/automake Warning fcopy: cannot create symbolic link /etc/alternatives/djview Warning fcopy: cannot create symbolic link /etc/alternatives/c89 Warning fcopy: cannot create symbolic link /etc/alternatives/montage Warning fcopy: cannot create symbolic link /etc/alternatives/mpi Warning fcopy: cannot create symbolic link /etc/alternatives/bf_compact Warning fcopy: cannot create symbolic link /etc/alternatives/netcat Warning fcopy: cannot create symbolic link /etc/alternatives/editor Warning fcopy: cannot create symbolic link /etc/alternatives/compare Warning fcopy: cannot create symbolic link /etc/alternatives/wineboot Warning fcopy: cannot create symbolic link /etc/alternatives/wine64 Warning fcopy: cannot create symbolic link /etc/alternatives/regedit Warning fcopy: cannot create symbolic link /etc/alternatives/stream Warning fcopy: cannot create symbolic link /etc/alternatives/google-chrome Warning fcopy: cannot create symbolic link /etc/alternatives/mogrify-im6 Warning fcopy: cannot create symbolic link /etc/alternatives/gview Warning fcopy: cannot create symbolic link /etc/alternatives/rmt Warning fcopy: cannot create symbolic link /etc/alternatives/bibtex Warning fcopy: cannot create symbolic link /etc/alternatives/ebtables Warning fcopy: cannot create symbolic link /etc/alternatives/mpic++ Warning fcopy: cannot create symbolic link /etc/alternatives/rvim Warning fcopy: cannot create symbolic link /etc/alternatives/aclocal Warning fcopy: cannot create symbolic link /etc/alternatives/pico Warning fcopy: cannot create symbolic link /etc/alternatives/f95 Warning fcopy: cannot create symbolic link /etc/alternatives/lzma Warning fcopy: cannot create symbolic link /etc/alternatives/python Warning fcopy: cannot create symbolic link /etc/alternatives/winepath Warning fcopy: cannot create symbolic link /etc/alternatives/pbr Warning fcopy: cannot create symbolic link /etc/alternatives/arptables Warning fcopy: cannot create symbolic link /etc/alternatives/mpifort Warning fcopy: cannot create symbolic link /etc/alternatives/pager Warning fcopy: cannot create symbolic link /etc/alternatives/lzdiff Warning fcopy: cannot create symbolic link /etc/alternatives/nc Warning fcopy: cannot create symbolic link /etc/alternatives/wine Warning fcopy: cannot create symbolic link /etc/alternatives/winecfg Warning fcopy: cannot create symbolic link /etc/alternatives/www-browser Warning fcopy: cannot create symbolic link /etc/alternatives/stream-im6 Warning fcopy: cannot create symbolic link /etc/alternatives/lzip Warning fcopy: cannot create symbolic link /etc/alternatives/locate Warning fcopy: cannot create symbolic link /etc/alternatives/python3 Warning fcopy: cannot create symbolic link /etc/alternatives/ebtables-restore Warning fcopy: cannot create symbolic link /etc/alternatives/aptitude Warning fcopy: cannot create symbolic link /etc/alternatives/lzfgrep Warning fcopy: cannot create symbolic link /etc/alternatives/resource-file-generator Warning fcopy: cannot create symbolic link /etc/alternatives/rgvim Warning fcopy: cannot create symbolic link /etc/alternatives/conjure-im6 Warning fcopy: cannot create symbolic link /etc/alternatives/display Warning fcopy: cannot create symbolic link /etc/alternatives/vim Warning fcopy: cannot create symbolic link /etc/alternatives/js Warning fcopy: cannot create symbolic link /etc/alternatives/c-sharp-compiler Warning fcopy: cannot create symbolic link /etc/alternatives/mpif77 Warning fcopy: cannot create symbolic link /etc/alternatives/mpiexec Warning fcopy: cannot create symbolic link /etc/alternatives/x-terminal-emulator Warning fcopy: cannot create symbolic link /etc/alternatives/mt Warning fcopy: cannot create symbolic link /etc/alternatives/composite Warning fcopy: cannot create symbolic link /etc/alternatives/js.1.gz Warning fcopy: cannot create symbolic link /etc/alternatives/iptables Warning fcopy: cannot create symbolic link /etc/alternatives/c++ Warning fcopy: cannot create symbolic link /etc/alternatives/bogofilter Warning fcopy: cannot create symbolic link /etc/alternatives/lzless Warning fcopy: cannot create symbolic link /etc/alternatives/iptables-restore Warning fcopy: cannot create symbolic link /etc/alternatives/arptables-restore Warning fcopy: cannot create symbolic link /etc/alternatives/iotop Warning fcopy: cannot create symbolic link /etc/alternatives/pinentry-x11 Warning fcopy: cannot create symbolic link /etc/alternatives/f77 Warning fcopy: cannot create symbolic link /etc/alternatives/apalache-mc Warning fcopy: cannot create symbolic link /etc/alternatives/lzgrep Warning fcopy: cannot create symbolic link /etc/alternatives/vimdiff Warning fcopy: cannot create symbolic link /etc/alternatives/unrar Warning fcopy: cannot create symbolic link /etc/alternatives/lzip-compressor Warning fcopy: cannot create symbolic link /etc/alternatives/telnet Warning fcopy: cannot create symbolic link /etc/alternatives/bogoupgrade Warning fcopy: cannot create symbolic link /etc/alternatives/lzip-decompressor Warning fcopy: cannot create symbolic link /etc/alternatives/ip6tables-save Warning fcopy: cannot create symbolic link /etc/alternatives/identify-im6 Warning fcopy: cannot create symbolic link /etc/alternatives/dafny Warning fcopy: cannot create symbolic link /etc/alternatives/rlogin Warning fcopy: cannot create symbolic link /etc/alternatives/gnome-www-browser Warning fcopy: cannot create symbolic link /etc/alternatives/evim Warning fcopy: cannot create symbolic link /etc/alternatives/conjure Warning fcopy: cannot create symbolic link /etc/alternatives/lzcat Warning fcopy: cannot create symbolic link /etc/alternatives/bf_tar Warning fcopy: cannot create symbolic link /etc/alternatives/ex Warning fcopy: cannot create symbolic link /etc/alternatives/import Warning fcopy: cannot create symbolic link /etc/alternatives/view Warning fcopy: cannot create symbolic link /etc/alternatives/rsh Warning fcopy: cannot create symbolic link /etc/alternatives/lzmore Warning fcopy: cannot create symbolic link /etc/alternatives/ebtables-save Warning fcopy: cannot create symbolic link /etc/alternatives/bogotune Warning fcopy: cannot create symbolic link /etc/alternatives/gvim Warning fcopy: cannot create symbolic link /etc/alternatives/identify Warning fcopy: cannot create symbolic link /etc/alternatives/signal-desktop Warning fcopy: cannot create symbolic link /etc/alternatives/mpif90 Warning fcopy: cannot create symbolic link /etc/alternatives/regsvr32 Warning fcopy: cannot create symbolic link /etc/alternatives/dafny3 Warning fcopy: cannot create symbolic link /etc/alternatives/lzegrep Warning fcopy: cannot create symbolic link /etc/alternatives/mogrify Warning fcopy: cannot create symbolic link /etc/alternatives/gvimdiff Warning fcopy: cannot create symbolic link /etc/alternatives/mpirun Warning fcopy: cannot create symbolic link /etc/pulse/client.conf.d/01-enable-autospawn.conf Private /etc installed in 38.53 ms Base filesystem installed in 41.54 ms Warning: NVIDIA card detected, nogroups command ignored Warning: NVIDIA card detected, nogroups command ignored Child process initialized in 185.06 ms Error: no suitable /usr/bin/discord executable found Parent is shutting down, bye... ``` </p> </details> <details> <summary>Output of <code>LC_ALL=C firejail --debug /path/to/program</code></summary> <p> [discord-debug.log](https://github.com/user-attachments/files/18492221/discord-debug.log) </p> </details>
gitea-mirror 2026-05-05 09:54:20 -06:00
  • closed this issue
  • added the
    notabug
    label
Author
Owner

@kmk3 commented on GitHub (Jan 21, 2025):

LC_ALL=C firejail /usr/bin/discord

What is the output of the following:

which -a /usr/bin/discord
ls -l /usr/bin/discord
Error: no suitable discord executable found 

What happens with ignore private-bin?

Warning fcopy: cannot create symbolic link /etc/alternatives/mpirun
Warning fcopy: cannot create symbolic link /etc/pulse/client.conf.d/01-enable-autospawn.conf

What happens with ignore private-etc?

<!-- gh-comment-id:2605340404 --> @kmk3 commented on GitHub (Jan 21, 2025): > ``` > LC_ALL=C firejail /usr/bin/discord > ``` What is the output of the following: ```sh which -a /usr/bin/discord ls -l /usr/bin/discord ``` > ``` > Error: no suitable discord executable found > ``` What happens with `ignore private-bin`? > ``` > Warning fcopy: cannot create symbolic link /etc/alternatives/mpirun > Warning fcopy: cannot create symbolic link /etc/pulse/client.conf.d/01-enable-autospawn.conf > ``` What happens with `ignore private-etc`?
Author
Owner

@saltiniroberto commented on GitHub (Jan 21, 2025):

LC_ALL=C firejail /usr/bin/discord

What is the output of the following:

$ which -a /usr/bin/discord
/usr/bin/discord
$ ls -l /usr/bin/discord
lrwxrwxrwx 1 root root 24 Jan 14 08:04 /usr/bin/discord -> ../share/discord/Discord
Error: no suitable discord executable found 

What happens with ignore private-bin?

Reading profile /etc/firejail/discord.profile
Reading profile /etc/firejail/globals.local
Reading profile /etc/firejail/discord-common.profile
Reading profile /etc/firejail/electron-common.profile
Reading profile /etc/firejail/blink-common.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-xdg.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-runuser-common.inc
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
firejail version 0.9.73

Parent pid 130733, child pid 130736
Warning: NVIDIA card detected, nogroups command ignored
Private /opt installed in 0.28 ms
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning fcopy: cannot create symbolic link /etc/alternatives/x-www-browser
Warning fcopy: cannot create symbolic link /etc/alternatives/brave-browser
Warning fcopy: cannot create symbolic link /etc/alternatives/drawio
Warning fcopy: cannot create symbolic link /etc/alternatives/google-chrome
Warning fcopy: cannot create symbolic link /etc/alternatives/pbr
Warning fcopy: cannot create symbolic link /etc/alternatives/js
Warning fcopy: cannot create symbolic link /etc/alternatives/js.1.gz
Warning fcopy: cannot create symbolic link /etc/alternatives/apalache-mc
Warning fcopy: cannot create symbolic link /etc/alternatives/dafny
Warning fcopy: cannot create symbolic link /etc/alternatives/gnome-www-browser
Warning fcopy: cannot create symbolic link /etc/alternatives/signal-desktop
Warning fcopy: cannot create symbolic link /etc/alternatives/dafny3
Warning fcopy: cannot create symbolic link /etc/pulse/client.conf.d/01-enable-autospawn.conf
Private /etc installed in 57.85 ms
Base filesystem installed in 116.12 ms
Warning: NVIDIA card detected, nogroups command ignored
Warning: NVIDIA card detected, nogroups command ignored
Child process initialized in 275.08 ms
Error: cannot find the program in the path

Parent is shutting down, bye...
Warning fcopy: cannot create symbolic link /etc/alternatives/mpirun
Warning fcopy: cannot create symbolic link /etc/pulse/client.conf.d/01-enable-autospawn.conf

What happens with ignore private-etc?

With ignore private-etc but not ignore private-bin

Reading profile /etc/firejail/discord.profile
Reading profile /etc/firejail/globals.local
Reading profile /etc/firejail/discord-common.profile
Reading profile /etc/firejail/electron-common.profile
Reading profile /etc/firejail/blink-common.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-xdg.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-runuser-common.inc
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
firejail version 0.9.73

Parent pid 131187, child pid 131190
Warning: NVIDIA card detected, nogroups command ignored
Private /opt installed in 0.07 ms
19 programs installed in 36.67 ms
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning: NVIDIA card detected, nogroups command ignored
Base filesystem installed in 44.99 ms
Warning: NVIDIA card detected, nogroups command ignored
Warning: NVIDIA card detected, nogroups command ignored
Child process initialized in 175.78 ms
Error: no suitable discord executable found

Parent is shutting down, bye...
<!-- gh-comment-id:2605818056 --> @saltiniroberto commented on GitHub (Jan 21, 2025): > > ``` > > LC_ALL=C firejail /usr/bin/discord > > ``` > > What is the output of the following: ```console $ which -a /usr/bin/discord /usr/bin/discord ``` ```console $ ls -l /usr/bin/discord lrwxrwxrwx 1 root root 24 Jan 14 08:04 /usr/bin/discord -> ../share/discord/Discord ``` > > ``` > > Error: no suitable discord executable found > > ``` > > What happens with `ignore private-bin`? ``` Reading profile /etc/firejail/discord.profile Reading profile /etc/firejail/globals.local Reading profile /etc/firejail/discord-common.profile Reading profile /etc/firejail/electron-common.profile Reading profile /etc/firejail/blink-common.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-exec.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-xdg.inc Reading profile /etc/firejail/whitelist-common.inc Reading profile /etc/firejail/whitelist-runuser-common.inc Reading profile /etc/firejail/whitelist-usr-share-common.inc Reading profile /etc/firejail/whitelist-var-common.inc firejail version 0.9.73 Parent pid 130733, child pid 130736 Warning: NVIDIA card detected, nogroups command ignored Private /opt installed in 0.28 ms Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set. Warning fcopy: cannot create symbolic link /etc/alternatives/x-www-browser Warning fcopy: cannot create symbolic link /etc/alternatives/brave-browser Warning fcopy: cannot create symbolic link /etc/alternatives/drawio Warning fcopy: cannot create symbolic link /etc/alternatives/google-chrome Warning fcopy: cannot create symbolic link /etc/alternatives/pbr Warning fcopy: cannot create symbolic link /etc/alternatives/js Warning fcopy: cannot create symbolic link /etc/alternatives/js.1.gz Warning fcopy: cannot create symbolic link /etc/alternatives/apalache-mc Warning fcopy: cannot create symbolic link /etc/alternatives/dafny Warning fcopy: cannot create symbolic link /etc/alternatives/gnome-www-browser Warning fcopy: cannot create symbolic link /etc/alternatives/signal-desktop Warning fcopy: cannot create symbolic link /etc/alternatives/dafny3 Warning fcopy: cannot create symbolic link /etc/pulse/client.conf.d/01-enable-autospawn.conf Private /etc installed in 57.85 ms Base filesystem installed in 116.12 ms Warning: NVIDIA card detected, nogroups command ignored Warning: NVIDIA card detected, nogroups command ignored Child process initialized in 275.08 ms Error: cannot find the program in the path Parent is shutting down, bye... ``` > > ``` > > Warning fcopy: cannot create symbolic link /etc/alternatives/mpirun > > Warning fcopy: cannot create symbolic link /etc/pulse/client.conf.d/01-enable-autospawn.conf > > ``` > > What happens with `ignore private-etc`? With `ignore private-etc` but *not* `ignore private-bin` ``` Reading profile /etc/firejail/discord.profile Reading profile /etc/firejail/globals.local Reading profile /etc/firejail/discord-common.profile Reading profile /etc/firejail/electron-common.profile Reading profile /etc/firejail/blink-common.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-exec.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-xdg.inc Reading profile /etc/firejail/whitelist-common.inc Reading profile /etc/firejail/whitelist-runuser-common.inc Reading profile /etc/firejail/whitelist-usr-share-common.inc Reading profile /etc/firejail/whitelist-var-common.inc firejail version 0.9.73 Parent pid 131187, child pid 131190 Warning: NVIDIA card detected, nogroups command ignored Private /opt installed in 0.07 ms 19 programs installed in 36.67 ms Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set. Warning: NVIDIA card detected, nogroups command ignored Base filesystem installed in 44.99 ms Warning: NVIDIA card detected, nogroups command ignored Warning: NVIDIA card detected, nogroups command ignored Child process initialized in 175.78 ms Error: no suitable discord executable found Parent is shutting down, bye... ```
Author
Owner

@kmk3 commented on GitHub (Jan 22, 2025):

$ ls -l /usr/bin/discord
lrwxrwxrwx 1 root root 24 Jan 14 08:04 /usr/bin/discord -> ../share/discord/Discord

What is the output of the following?

which -a Discord
which -a discord
ls -l /usr/share/discord
ls -l /usr/share/discord/Discord

firejail --ignore=private-bin --profile=discord \
  ls -l /usr/share/discord

firejail --ignore=private-bin --profile=discord \
  ls -l /usr/share/discord/Discord
<!-- gh-comment-id:2606486852 --> @kmk3 commented on GitHub (Jan 22, 2025): > ```console > $ ls -l /usr/bin/discord > lrwxrwxrwx 1 root root 24 Jan 14 08:04 /usr/bin/discord -> ../share/discord/Discord > ``` What is the output of the following? ```sh which -a Discord which -a discord ls -l /usr/share/discord ls -l /usr/share/discord/Discord firejail --ignore=private-bin --profile=discord \ ls -l /usr/share/discord firejail --ignore=private-bin --profile=discord \ ls -l /usr/share/discord/Discord ```
Author
Owner

@saltiniroberto commented on GitHub (Jan 25, 2025):

$ which -a Discord
$
$ which -a discord
/usr/local/bin/discord
/usr/bin/discord
/bin/discord
$ ls -l /usr/share/discord
total 207032
-rw-r--r-- 1 root root    151721 Dec  7 15:04 chrome_100_percent.pak
-rw-r--r-- 1 root root    229770 Dec  7 15:04 chrome_200_percent.pak
-rwxr-xr-x 1 root root   2317912 Jan 14 08:04 chrome_crashpad_handler
-rwsr-xr-x 1 root root     15104 Jan 14 08:04 chrome-sandbox
-rwxr-xr-x 1 root root 175756320 Jan 14 08:04 Discord
-rw-r--r-- 1 root root       309 Jan 14 08:04 discord.desktop
-rw-r--r-- 1 root root      7009 Jan 14 07:53 discord.png
-rw-r--r-- 1 root root  10468208 Dec  7 15:04 icudtl.dat
-rw-r--r-- 1 root root    241976 Jan 14 08:04 libEGL.so
-rw-r--r-- 1 root root   3995840 Jan 14 08:04 libffmpeg.so
-rw-r--r-- 1 root root   6827016 Jan 14 08:04 libGLESv2.so
-rw-r--r-- 1 root root   4736048 Jan 14 08:04 libvk_swiftshader.so
-rw-r--r-- 1 root root    574824 Jan 14 08:04 libvulkan.so.1
drwxr-xr-x 2 root root      4096 Jan 15 11:15 locales
-rwxr-xr-x 1 root root       861 Jan 14 08:04 postinst.sh
drwxr-xr-x 3 root root      4096 Jan 15 11:15 resources
-rw-r--r-- 1 root root   5642201 Dec  7 15:04 resources.pak
-rw-r--r-- 1 root root    313526 Dec  7 15:04 snapshot_blob.bin
-rw-r--r-- 1 root root    665981 Dec  7 15:04 v8_context_snapshot.bin
-rw-r--r-- 1 root root       107 Dec  7 15:04 vk_swiftshader_icd.json
$ ls -l /usr/share/discord/Discord
-rwxr-xr-x 1 root root 175756320 Jan 14 08:04 /usr/share/discord/Discord
$ firejail --ignore=private-bin --profile=discord \
  ls -l /usr/share/discord
Reading profile /etc/firejail/discord.profile
Reading profile /etc/firejail/globals.local
Reading profile /etc/firejail/discord-common.profile
Reading profile /etc/firejail/electron-common.profile
Reading profile /etc/firejail/blink-common.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-xdg.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-runuser-common.inc
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
firejail version 0.9.73

Parent pid 1257670, child pid 1257673
Warning: NVIDIA card detected, nogroups command ignored
Private /opt installed in 0.08 ms
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning fcopy: cannot create symbolic link /etc/alternatives/x-www-browser
Warning fcopy: cannot create symbolic link /etc/alternatives/brave-browser
Warning fcopy: cannot create symbolic link /etc/alternatives/drawio
Warning fcopy: cannot create symbolic link /etc/alternatives/google-chrome
Warning fcopy: cannot create symbolic link /etc/alternatives/pbr
Warning fcopy: cannot create symbolic link /etc/alternatives/js
Warning fcopy: cannot create symbolic link /etc/alternatives/js.1.gz
Warning fcopy: cannot create symbolic link /etc/alternatives/apalache-mc
Warning fcopy: cannot create symbolic link /etc/alternatives/dafny
Warning fcopy: cannot create symbolic link /etc/alternatives/gnome-www-browser
Warning fcopy: cannot create symbolic link /etc/alternatives/signal-desktop
Warning fcopy: cannot create symbolic link /etc/alternatives/dafny3
Warning fcopy: cannot create symbolic link /etc/pulse/client.conf.d/01-enable-autospawn.conf
Private /etc installed in 35.89 ms
Base filesystem installed in 93.83 ms
Warning: NVIDIA card detected, nogroups command ignored
Warning: NVIDIA card detected, nogroups command ignored
Child process initialized in 209.65 ms
ls: cannot access '/usr/share/discord': No such file or directory

Parent is shutting down, bye...
$ firejail --ignore=private-bin --profile=discord \
  ls -l /usr/share/discord/Discord
Reading profile /etc/firejail/discord.profile
Reading profile /etc/firejail/globals.local
Reading profile /etc/firejail/discord-common.profile
Reading profile /etc/firejail/electron-common.profile
Reading profile /etc/firejail/blink-common.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-xdg.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-runuser-common.inc
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
firejail version 0.9.73

Parent pid 1257927, child pid 1257930
Warning: NVIDIA card detected, nogroups command ignored
Private /opt installed in 0.08 ms
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning fcopy: cannot create symbolic link /etc/alternatives/x-www-browser
Warning fcopy: cannot create symbolic link /etc/alternatives/brave-browser
Warning fcopy: cannot create symbolic link /etc/alternatives/drawio
Warning fcopy: cannot create symbolic link /etc/alternatives/google-chrome
Warning fcopy: cannot create symbolic link /etc/alternatives/pbr
Warning fcopy: cannot create symbolic link /etc/alternatives/js
Warning fcopy: cannot create symbolic link /etc/alternatives/js.1.gz
Warning fcopy: cannot create symbolic link /etc/alternatives/apalache-mc
Warning fcopy: cannot create symbolic link /etc/alternatives/dafny
Warning fcopy: cannot create symbolic link /etc/alternatives/gnome-www-browser
Warning fcopy: cannot create symbolic link /etc/alternatives/signal-desktop
Warning fcopy: cannot create symbolic link /etc/alternatives/dafny3
Warning fcopy: cannot create symbolic link /etc/pulse/client.conf.d/01-enable-autospawn.conf
Private /etc installed in 35.14 ms
Base filesystem installed in 93.67 ms
Warning: NVIDIA card detected, nogroups command ignored
Warning: NVIDIA card detected, nogroups command ignored
Child process initialized in 207.67 ms
ls: cannot access '/usr/share/discord/Discord': No such file or directory

Parent is shutting down, bye...
<!-- gh-comment-id:2614122414 --> @saltiniroberto commented on GitHub (Jan 25, 2025): ```console $ which -a Discord $ ``` ```console $ which -a discord /usr/local/bin/discord /usr/bin/discord /bin/discord ``` ```console $ ls -l /usr/share/discord total 207032 -rw-r--r-- 1 root root 151721 Dec 7 15:04 chrome_100_percent.pak -rw-r--r-- 1 root root 229770 Dec 7 15:04 chrome_200_percent.pak -rwxr-xr-x 1 root root 2317912 Jan 14 08:04 chrome_crashpad_handler -rwsr-xr-x 1 root root 15104 Jan 14 08:04 chrome-sandbox -rwxr-xr-x 1 root root 175756320 Jan 14 08:04 Discord -rw-r--r-- 1 root root 309 Jan 14 08:04 discord.desktop -rw-r--r-- 1 root root 7009 Jan 14 07:53 discord.png -rw-r--r-- 1 root root 10468208 Dec 7 15:04 icudtl.dat -rw-r--r-- 1 root root 241976 Jan 14 08:04 libEGL.so -rw-r--r-- 1 root root 3995840 Jan 14 08:04 libffmpeg.so -rw-r--r-- 1 root root 6827016 Jan 14 08:04 libGLESv2.so -rw-r--r-- 1 root root 4736048 Jan 14 08:04 libvk_swiftshader.so -rw-r--r-- 1 root root 574824 Jan 14 08:04 libvulkan.so.1 drwxr-xr-x 2 root root 4096 Jan 15 11:15 locales -rwxr-xr-x 1 root root 861 Jan 14 08:04 postinst.sh drwxr-xr-x 3 root root 4096 Jan 15 11:15 resources -rw-r--r-- 1 root root 5642201 Dec 7 15:04 resources.pak -rw-r--r-- 1 root root 313526 Dec 7 15:04 snapshot_blob.bin -rw-r--r-- 1 root root 665981 Dec 7 15:04 v8_context_snapshot.bin -rw-r--r-- 1 root root 107 Dec 7 15:04 vk_swiftshader_icd.json ``` ```console $ ls -l /usr/share/discord/Discord -rwxr-xr-x 1 root root 175756320 Jan 14 08:04 /usr/share/discord/Discord ``` ```console $ firejail --ignore=private-bin --profile=discord \ ls -l /usr/share/discord Reading profile /etc/firejail/discord.profile Reading profile /etc/firejail/globals.local Reading profile /etc/firejail/discord-common.profile Reading profile /etc/firejail/electron-common.profile Reading profile /etc/firejail/blink-common.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-exec.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-xdg.inc Reading profile /etc/firejail/whitelist-common.inc Reading profile /etc/firejail/whitelist-runuser-common.inc Reading profile /etc/firejail/whitelist-usr-share-common.inc Reading profile /etc/firejail/whitelist-var-common.inc firejail version 0.9.73 Parent pid 1257670, child pid 1257673 Warning: NVIDIA card detected, nogroups command ignored Private /opt installed in 0.08 ms Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set. Warning fcopy: cannot create symbolic link /etc/alternatives/x-www-browser Warning fcopy: cannot create symbolic link /etc/alternatives/brave-browser Warning fcopy: cannot create symbolic link /etc/alternatives/drawio Warning fcopy: cannot create symbolic link /etc/alternatives/google-chrome Warning fcopy: cannot create symbolic link /etc/alternatives/pbr Warning fcopy: cannot create symbolic link /etc/alternatives/js Warning fcopy: cannot create symbolic link /etc/alternatives/js.1.gz Warning fcopy: cannot create symbolic link /etc/alternatives/apalache-mc Warning fcopy: cannot create symbolic link /etc/alternatives/dafny Warning fcopy: cannot create symbolic link /etc/alternatives/gnome-www-browser Warning fcopy: cannot create symbolic link /etc/alternatives/signal-desktop Warning fcopy: cannot create symbolic link /etc/alternatives/dafny3 Warning fcopy: cannot create symbolic link /etc/pulse/client.conf.d/01-enable-autospawn.conf Private /etc installed in 35.89 ms Base filesystem installed in 93.83 ms Warning: NVIDIA card detected, nogroups command ignored Warning: NVIDIA card detected, nogroups command ignored Child process initialized in 209.65 ms ls: cannot access '/usr/share/discord': No such file or directory Parent is shutting down, bye... ``` ```console $ firejail --ignore=private-bin --profile=discord \ ls -l /usr/share/discord/Discord Reading profile /etc/firejail/discord.profile Reading profile /etc/firejail/globals.local Reading profile /etc/firejail/discord-common.profile Reading profile /etc/firejail/electron-common.profile Reading profile /etc/firejail/blink-common.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-exec.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-xdg.inc Reading profile /etc/firejail/whitelist-common.inc Reading profile /etc/firejail/whitelist-runuser-common.inc Reading profile /etc/firejail/whitelist-usr-share-common.inc Reading profile /etc/firejail/whitelist-var-common.inc firejail version 0.9.73 Parent pid 1257927, child pid 1257930 Warning: NVIDIA card detected, nogroups command ignored Private /opt installed in 0.08 ms Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set. Warning fcopy: cannot create symbolic link /etc/alternatives/x-www-browser Warning fcopy: cannot create symbolic link /etc/alternatives/brave-browser Warning fcopy: cannot create symbolic link /etc/alternatives/drawio Warning fcopy: cannot create symbolic link /etc/alternatives/google-chrome Warning fcopy: cannot create symbolic link /etc/alternatives/pbr Warning fcopy: cannot create symbolic link /etc/alternatives/js Warning fcopy: cannot create symbolic link /etc/alternatives/js.1.gz Warning fcopy: cannot create symbolic link /etc/alternatives/apalache-mc Warning fcopy: cannot create symbolic link /etc/alternatives/dafny Warning fcopy: cannot create symbolic link /etc/alternatives/gnome-www-browser Warning fcopy: cannot create symbolic link /etc/alternatives/signal-desktop Warning fcopy: cannot create symbolic link /etc/alternatives/dafny3 Warning fcopy: cannot create symbolic link /etc/pulse/client.conf.d/01-enable-autospawn.conf Private /etc installed in 35.14 ms Base filesystem installed in 93.67 ms Warning: NVIDIA card detected, nogroups command ignored Warning: NVIDIA card detected, nogroups command ignored Child process initialized in 207.67 ms ls: cannot access '/usr/share/discord/Discord': No such file or directory Parent is shutting down, bye... ```
Author
Owner

@kmk3 commented on GitHub (Jan 26, 2025):

$ ls -l /usr/share/discord/Discord
-rwxr-xr-x 1 root root 175756320 Jan 14 08:04 /usr/share/discord/Discord
$ firejail --ignore=private-bin --profile=discord \
  ls -l /usr/share/discord
Reading profile /etc/firejail/discord.profile
Reading profile /etc/firejail/globals.local
Reading profile /etc/firejail/discord-common.profile
[...]
Child process initialized in 209.65 ms
ls: cannot access '/usr/share/discord': No such file or directory

Parent is shutting down, bye...

That is strange, as discord.profile has whitelist /usr/share/discord and no
other profile mentions that path.

It works for me:

$ sudo mkdir /usr/share/discord
$ firejail --quiet --ignore=private-bin --profile=discord \
  ls -l /usr/share/discord
total 0

Do you have anything in globals.local?

What is the output of:

ls -l /usr/share | grep discord
firejail --ignore='include globals.local' --ignore=private-bin \
  --profile=discord \
  ls -l /usr/share | grep discord

You can also use an interactive shell to debug paths and see if you find
anything interesting. Example:

firejail --quiet --tab --ignore='include globals.local' --ignore=private-bin \
  --profile=discord \
  /bin/bash
<!-- gh-comment-id:2614305585 --> @kmk3 commented on GitHub (Jan 26, 2025): > ```console > $ ls -l /usr/share/discord/Discord > -rwxr-xr-x 1 root root 175756320 Jan 14 08:04 /usr/share/discord/Discord > ``` > > ```console > $ firejail --ignore=private-bin --profile=discord \ > ls -l /usr/share/discord > Reading profile /etc/firejail/discord.profile > Reading profile /etc/firejail/globals.local > Reading profile /etc/firejail/discord-common.profile > [...] > Child process initialized in 209.65 ms > ls: cannot access '/usr/share/discord': No such file or directory > > Parent is shutting down, bye... > ``` That is strange, as discord.profile has `whitelist /usr/share/discord` and no other profile mentions that path. It works for me: ```console $ sudo mkdir /usr/share/discord $ firejail --quiet --ignore=private-bin --profile=discord \ ls -l /usr/share/discord total 0 ``` Do you have anything in globals.local? What is the output of: ```sh ls -l /usr/share | grep discord firejail --ignore='include globals.local' --ignore=private-bin \ --profile=discord \ ls -l /usr/share | grep discord ``` You can also use an interactive shell to debug paths and see if you find anything interesting. Example: ```sh firejail --quiet --tab --ignore='include globals.local' --ignore=private-bin \ --profile=discord \ /bin/bash ```
Author
Owner

@saltiniroberto commented on GitHub (Jan 28, 2025):

Solved.
It was just an installation issue on my side.
Apologies.

<!-- gh-comment-id:2617620395 --> @saltiniroberto commented on GitHub (Jan 28, 2025): Solved. It was just an installation issue on my side. Apologies.
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#3314
No description provided.