[GH-ISSUE #3589] Discord wont open when executed outside the pkg manager one #2249

Closed
opened 2026-05-05 08:56:30 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @YShow on GitHub (Aug 15, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3589

Bug and expected behavior

  • Describe the bug: open discord from a custom folder says archive or directory doesn't exist
  • What did you expect to happen? Discord opening normally

No profile or disabling firejail

  • What changed calling firejail --noprofile PROGRAM in a shell?
    Program executed fine

  • What changed calling the program by path=without firejail (check whereis PROGRAM, firejail --list, stat $programpath)?
    Program executed fine

Reproduce
Steps to reproduce the behavior:

  1. Run in bash firejail /home/name/DiscordFolder
    1.1 Run in bash firejail --ignore=quiet --noblacklist=/home/yasser/opt/Discord /home/yasser/opt/Discord/Discord

  2. See error Archive or directory not found

Environment

  • Linux distribution and version (ie output of lsb_release -a)
    Distributor ID: openSUSE
    Description: openSUSE Tumbleweed
    Release: 20200810

  • Firejail version (output of firejail --version)
    firejail version 0.9.62

Additional context
Since every discord update makes it impossible to use the older version and my distribution doesnt update right away i decided to use the tar.gz provided by discord but i can execute it with firejail anymore

Checklist

  • [X ] The upstream profile (and redirect profile if exists) have no changes fixing it.
  • [ X] The upstream profile exists (find / -name 'firejail' 2>/dev/null/fd firejail to locate profiles ie in /usr/local/etc/firejail/PROGRAM.profile)
  • [X ] Programs needed for interaction are listed.
  • [ X] Error was checked in search engine and on issue list without success.
debug output

output.txt

Originally created by @YShow on GitHub (Aug 15, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3589 **Bug and expected behavior** - Describe the bug: open discord from a custom folder says archive or directory doesn't exist - What did you expect to happen? Discord opening normally **No profile or disabling firejail** - What changed calling `firejail --noprofile PROGRAM` in a shell? Program executed fine - What changed calling the program *by path*=without firejail (check `whereis PROGRAM`, `firejail --list`, `stat $programpath`)? Program executed fine **Reproduce** Steps to reproduce the behavior: 1. Run in bash `firejail /home/name/DiscordFolder` 1.1 Run in bash `firejail --ignore=quiet --noblacklist=/home/yasser/opt/Discord /home/yasser/opt/Discord/Discord` 2. See error `Archive or directory not found` **Environment** - Linux distribution and version (ie output of `lsb_release -a`) Distributor ID: openSUSE Description: openSUSE Tumbleweed Release: 20200810 - Firejail version (output of `firejail --version`) firejail version 0.9.62 **Additional context** Since every discord update makes it impossible to use the older version and my distribution doesnt update right away i decided to use the tar.gz provided by discord but i can execute it with firejail anymore **Checklist** - [X ] The upstream profile (and redirect profile if exists) have no changes fixing it. - [ X] The upstream profile exists (`find / -name 'firejail' 2>/dev/null`/`fd firejail` to locate profiles ie in `/usr/local/etc/firejail/PROGRAM.profile`) - [X ] Programs needed for interaction are listed. - [ X] Error was checked in search engine and on issue list without success. <details><summary> debug output </summary> [output.txt](https://github.com/netblue30/firejail/files/5078252/output.txt) </details>
Author
Owner

@bbhtt commented on GitHub (Aug 15, 2020):

i decided to use the tar.gz provided by discord but i can execute it with firejail anymore

I have a different error but whitelist ${HOME}/opt in your profile and firejail --ignore=quiet /home/korte/opt/Discord/Discord runs... or move the opt in home to Downloads...

<!-- gh-comment-id:674373146 --> @bbhtt commented on GitHub (Aug 15, 2020): > i decided to use the tar.gz provided by discord but i can execute it with firejail anymore I have a different error but `whitelist ${HOME}/opt` in your profile and `firejail --ignore=quiet /home/korte/opt/Discord/Discord` runs... or move the `opt` in home to Downloads...
Author
Owner

@YShow commented on GitHub (Aug 15, 2020):

i decided to use the tar.gz provided by discord but i can execute it with firejail anymore

I have a different error but whitelist ${HOME}/opt in your profile and firejail --ignore=quiet /home/korte/opt/Discord/Discord runs... or move the opt in home to Downloads...

Thank you, i tried with the flag '--whitelist' and now it opens normal, but shouldn't the noblacklist and whitelist basically do the same thing?

<!-- gh-comment-id:674376252 --> @YShow commented on GitHub (Aug 15, 2020): > > i decided to use the tar.gz provided by discord but i can execute it with firejail anymore > > I have a different error but `whitelist ${HOME}/opt` in your profile and `firejail --ignore=quiet /home/korte/opt/Discord/Discord` runs... or move the `opt` in home to Downloads... Thank you, i tried with the flag '--whitelist' and now it opens normal, but shouldn't the noblacklist and whitelist basically do the same thing?
Author
Owner

@bbhtt commented on GitHub (Aug 15, 2020):

but shouldn't the noblacklist and whitelist basically do the same thing?

No they are different, you can take a look at man firejail-profile to know how. You don't need to do a noblacklist since there is no blacklist "${HOME}/opt."

<!-- gh-comment-id:674392445 --> @bbhtt commented on GitHub (Aug 15, 2020): > but shouldn't the noblacklist and whitelist basically do the same thing? No they are different, you can take a look at `man firejail-profile` to know how. You don't need to do a noblacklist since there is no blacklist "`${HOME}/opt`."
Author
Owner

@YShow commented on GitHub (Aug 15, 2020):

but shouldn't the noblacklist and whitelist basically do the same thing?

No they are different, you can take a look at man firejail-profile to know how. You don't need to do a noblacklist since there is no blacklist "${HOME}/opt."

Thank you, ill take a look, im closing this issue since its working now

<!-- gh-comment-id:674393680 --> @YShow commented on GitHub (Aug 15, 2020): > > but shouldn't the noblacklist and whitelist basically do the same thing? > > No they are different, you can take a look at `man firejail-profile` to know how. You don't need to do a noblacklist since there is no blacklist "`${HOME}/opt`." Thank you, ill take a look, im closing this issue since its working now
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#2249
No description provided.