netblue30 / firejail

Linux namespaces and seccomp-bpf sandbox
https://firejail.wordpress.com
GNU General Public License v2.0
5.6k stars 555 forks source link

xdg-open inside a jail can't open URLs in (not jailed) Firefox #3919

Open faern opened 3 years ago

faern commented 3 years ago

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

rusty-snake commented 3 years ago

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

rusty-snake commented 3 years ago

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