[GH-ISSUE #2878] Discord fails to load using --profile= #1798

Closed
opened 2026-05-05 08:28:20 -06:00 by gitea-mirror · 11 comments
Owner

Originally created by @BobMacpherson on GitHub (Jul 29, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2878

I am using firejail commit 50fc318
I have copied the /etc/firejail/discord.profile to ~/.config/firejail and named it discord-2.profile
I changed the following in the profile

noblacklist ${HOME}/.config/discord-2
mkdir ${HOME}/.config/discord-2
whitelist ${HOME}/.config/discord-2

I copied my ~/.config/discord folder to ~/.config/discord-2
When i use
firejail --profile=~/.config/firejail/discord-2.profile discord
It launches but after about 5 seconds the screen just turnes grey and discord never loads
Using discord by its self loads
Using firejail discord by it self loads
But when pointing it to the discord-2 profile and ~/.config/discord-2 it never loads.

Originally created by @BobMacpherson on GitHub (Jul 29, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/2878 I am using firejail commit 50fc318 I have copied the /etc/firejail/discord.profile to ~/.config/firejail and named it discord-2.profile I changed the following in the profile ``` noblacklist ${HOME}/.config/discord-2 mkdir ${HOME}/.config/discord-2 whitelist ${HOME}/.config/discord-2 ``` I copied my ~/.config/discord folder to ~/.config/discord-2 When i use `firejail --profile=~/.config/firejail/discord-2.profile discord` It launches but after about 5 seconds the screen just turnes grey and discord never loads Using `discord` by its self loads Using `firejail discord` by it self loads But when pointing it to the discord-2 profile and ~/.config/discord-2 it never loads.
gitea-mirror 2026-05-05 08:28:20 -06:00
Author
Owner

@rusty-snake commented on GitHub (Jul 29, 2019):

@BobMacpherson how do you say discord that it has to load the config from ${HOME}/.config/discord-2?

And what's your plan? Why do you need this?

Output from touch ${HOME}/.config/discord?

<!-- gh-comment-id:516087050 --> @rusty-snake commented on GitHub (Jul 29, 2019): @BobMacpherson how do you say discord that it has to load the config from `${HOME}/.config/discord-2`? And what's your plan? Why do you need this? Output from `touch ${HOME}/.config/discord`?
Author
Owner

@BobMacpherson commented on GitHub (Jul 29, 2019):

how do you say discord that it has to load the config from ${HOME}/.config/discord-2?

In the profile have told firejail to point to the discord-2 folder.

noblacklist ${HOME}/.config/discord-2
mkdir ${HOME}/.config/discord-2
whitelist ${HOME}/.config/discord-2

And what's your plan? Why do you need this?

I want to run discord with multiple profiles, but i do not want to maintain 2-3 different discord versions using canary or ptb. There should be no reason i cannot use firejail and discord to load a second profile in to a sandbox and load it from there using the same discord binary

Output from touch ${HOME}/.config/discord?

There is no output, the folder already exists.

<!-- gh-comment-id:516112541 --> @BobMacpherson commented on GitHub (Jul 29, 2019): > how do you say discord that it has to load the config from ${HOME}/.config/discord-2? In the profile have told firejail to point to the discord-2 folder. ``` noblacklist ${HOME}/.config/discord-2 mkdir ${HOME}/.config/discord-2 whitelist ${HOME}/.config/discord-2 ``` >And what's your plan? Why do you need this? I want to run discord with multiple profiles, but i do not want to maintain 2-3 different discord versions using canary or ptb. There should be no reason i cannot use firejail and discord to load a second profile in to a sandbox and load it from there using the same discord binary >Output from touch ${HOME}/.config/discord? There is no output, the folder already exists.
Author
Owner

@rusty-snake commented on GitHub (Jul 29, 2019):

In the profile have told firejail to point to the discord-2 folder.

????????

I think you misunderstood something and should have a look at the documentations.

<!-- gh-comment-id:516114501 --> @rusty-snake commented on GitHub (Jul 29, 2019): > In the profile have told firejail to point to the discord-2 folder. **????????** I think you misunderstood something and should have a look at the documentations.
Author
Owner

@rusty-snake commented on GitHub (Jul 29, 2019):

If you want two discord profiles you need --private or a discord build in option (don't know if exists).

<!-- gh-comment-id:516114746 --> @rusty-snake commented on GitHub (Jul 29, 2019): If you want two discord profiles you need `--private` or a discord build in option (don't know if exists).
Author
Owner

@BobMacpherson commented on GitHub (Jul 29, 2019):

As stated in the documentation,
https://firejail.wordpress.com/documentation-2/building-custom-profiles/
https://firejail.wordpress.com/features-3/man-firejail-profile/
Changing the profile to load a whitelisted folder, should make this folder is exposed in the sandbox

<!-- gh-comment-id:516118135 --> @BobMacpherson commented on GitHub (Jul 29, 2019): As stated in the documentation, https://firejail.wordpress.com/documentation-2/building-custom-profiles/ https://firejail.wordpress.com/features-3/man-firejail-profile/ Changing the profile to load a whitelisted folder, should make this folder is exposed in the sandbox
Author
Owner

@rusty-snake commented on GitHub (Jul 29, 2019):

Changing the profile to load a whitelisted folder, should make this folder is exposed in the sandbox

Yes, but how does discord know to use .config/discord-2 instead of .config/discord?

<!-- gh-comment-id:516136259 --> @rusty-snake commented on GitHub (Jul 29, 2019): > Changing the profile to load a whitelisted folder, should make this folder is exposed in the sandbox Yes, but how does discord know to use `.config/discord-2` instead of `.config/discord`?
Author
Owner

@BobMacpherson commented on GitHub (Jul 30, 2019):

Per the "Building Custom Profiles"
Whitelisting ~/.config/discord-2 should bootstarap it in the sandbox.

--private

This does not inherit any themeing present in the host.

<!-- gh-comment-id:516228714 --> @BobMacpherson commented on GitHub (Jul 30, 2019): Per the "Building Custom Profiles" Whitelisting ~/.config/discord-2 should bootstarap it in the sandbox. >--private This does not inherit any themeing present in the host.
Author
Owner

@SkewedZeppelin commented on GitHub (Jul 30, 2019):

Whitelisting ~/.config/discord-2 should bootstarap it in the sandbox.

yes, but discord won't ever use that path - making it useless

if your goal is to run multiple instances of discord at at time then you should use --private like @rusty-snake said

something like
$ firejail --private=/home/$user/discord-1 /usr/bin/discord
and
$ firejail --private=/home/$user/discord-2 /usr/bin/discord

<!-- gh-comment-id:516264219 --> @SkewedZeppelin commented on GitHub (Jul 30, 2019): > Whitelisting ~/.config/discord-2 should bootstarap it in the sandbox. yes, but discord won't ever use that path - making it useless if your goal is to run multiple instances of discord at at time then you should use --private like @rusty-snake [said](https://github.com/netblue30/firejail/issues/2878#issuecomment-516114746) something like `$ firejail --private=/home/$user/discord-1 /usr/bin/discord` and `$ firejail --private=/home/$user/discord-2 /usr/bin/discord`
Author
Owner

@BobMacpherson commented on GitHub (Jul 30, 2019):

--private does not inherit anything from the host profile. All theme and scripting is lost.
Using the exact same config as running it without --private, inherits everything given in the profile

<!-- gh-comment-id:516464040 --> @BobMacpherson commented on GitHub (Jul 30, 2019): --private does not inherit anything from the host profile. All theme and scripting is lost. Using the exact same config as running it without --private, inherits everything given in the profile
Author
Owner

@rusty-snake commented on GitHub (Jul 30, 2019):

--private does not inherit anything from the host profile

profile: firejail profile or discord profile?

All theme and scripting is lost.

You mean GTK+ themes, ...? Yes thats right
Or do you mean themes/scripts inside from discord?

<!-- gh-comment-id:516539425 --> @rusty-snake commented on GitHub (Jul 30, 2019): > --private does not inherit anything from the host profile profile: firejail profile or discord profile? > All theme and scripting is lost. You mean GTK+ themes, ...? Yes thats right Or do you mean themes/scripts inside from discord?
Author
Owner

@rusty-snake commented on GitHub (Aug 20, 2019):

@BobMacpherson I'm closing here due to inactivity, please fell free to reopen if you have more questions.

<!-- gh-comment-id:523218074 --> @rusty-snake commented on GitHub (Aug 20, 2019): @BobMacpherson I'm closing here due to inactivity, please fell free to reopen if you have more questions.
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#1798
No description provided.