mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2878] Discord fails to load using --profile= #1798
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#1798
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 @BobMacpherson on GitHub (Jul 29, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2878
I am using firejail commit
50fc318I have copied the /etc/firejail/discord.profile to ~/.config/firejail and named it discord-2.profile
I changed the following in the profile
I copied my ~/.config/discord folder to ~/.config/discord-2
When i use
firejail --profile=~/.config/firejail/discord-2.profile discordIt launches but after about 5 seconds the screen just turnes grey and discord never loads
Using
discordby its self loadsUsing
firejail discordby it self loadsBut when pointing it to the discord-2 profile and ~/.config/discord-2 it never loads.
@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?@BobMacpherson commented on GitHub (Jul 29, 2019):
In the profile have told firejail to point to the discord-2 folder.
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
There is no output, the folder already exists.
@rusty-snake commented on GitHub (Jul 29, 2019):
????????
I think you misunderstood something and should have a look at the documentations.
@rusty-snake commented on GitHub (Jul 29, 2019):
If you want two discord profiles you need
--privateor a discord build in option (don't know if exists).@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
@rusty-snake commented on GitHub (Jul 29, 2019):
Yes, but how does discord know to use
.config/discord-2instead of.config/discord?@BobMacpherson commented on GitHub (Jul 30, 2019):
Per the "Building Custom Profiles"
Whitelisting ~/.config/discord-2 should bootstarap it in the sandbox.
This does not inherit any themeing present in the host.
@SkewedZeppelin commented on GitHub (Jul 30, 2019):
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/discordand
$ firejail --private=/home/$user/discord-2 /usr/bin/discord@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
@rusty-snake commented on GitHub (Jul 30, 2019):
profile: firejail profile or discord profile?
You mean GTK+ themes, ...? Yes thats right
Or do you mean themes/scripts inside from discord?
@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.