[GH-ISSUE #3919] xdg-open inside a jail can't open URLs in (not jailed) Firefox #2457

Open
opened 2026-05-05 09:08:27 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @faern on GitHub (Jan 26, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3919

I'm not running Firefox inside firejail. But I want to be able to click on links in other programs that are running inside a firejail jail. However it does not work. Just starting a shell in a jail with the default profile can reproduce the issue:

$ firejail
$ xdg-open https://example.com

Gives me an error dialogue saying:

Your Firefox profile cannot be loaded. It may be missing or inaccessible.

With --noprofile xdg-open does work. I'm pretty sure it's the blocked access to ~/.mozilla that is the problem here. Is there maybe a way to make xdg-open work without letting the jail access my firefox config folder? Even if this is unfixable the issue can be something people find when they try to search online for this problem.

Environment

  • Fedora 33 Workstation
  • Firejail 0.9.64
Originally created by @faern on GitHub (Jan 26, 2021). Original GitHub issue: https://github.com/netblue30/firejail/issues/3919 I'm not running Firefox inside firejail. But I want to be able to click on links in other programs that are running inside a firejail jail. However it does not work. Just starting a shell in a jail with the default profile can reproduce the issue: ``` $ firejail $ xdg-open https://example.com ``` Gives me an error dialogue saying: > Your Firefox profile cannot be loaded. It may be missing or inaccessible. With `--noprofile` `xdg-open` does work. I'm pretty sure it's the blocked access to `~/.mozilla` that is the problem here. Is there maybe a way to make `xdg-open` work without letting the jail access my firefox config folder? Even if this is unfixable the issue can be something people find when they try to search online for this problem. **Environment** - Fedora 33 Workstation - Firejail 0.9.64
gitea-mirror added the
sandbox-ipc
label 2026-05-05 09:08:27 -06:00
Author
Owner
<!-- gh-comment-id:768078226 --> @rusty-snake commented on GitHub (Jan 27, 2021): Everything: https://github.com/netblue30/firejail/issues?q=open+links Summary: https://github.com/netblue30/firejail/issues/3471#issuecomment-646582480 > Is there maybe a way to make xdg-open work without letting the jail access my firefox config folder? https://github.com/glitsj16/firejail-handler-http https://github.com/glitsj16/firejail-handler-extra https://github.com/netblue30/firejail/issues/3881#issuecomment-805760626 https://github.com/rusty-snake/fireurl
Author
Owner

@rusty-snake commented on GitHub (Apr 6, 2021):

FYI: https://github.com/netblue30/firejail/issues/3881#issuecomment-805760626

<!-- gh-comment-id:814198751 --> @rusty-snake commented on GitHub (Apr 6, 2021): FYI: https://github.com/netblue30/firejail/issues/3881#issuecomment-805760626
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#2457
No description provided.