You are not logged in.

#1 2022-01-10 16:14:17

gtf21
Member
Registered: 2020-06-28
Posts: 141
Website

Getting firejailed firefox to properly open other apps

I run firefox inside a firejail profile. Often, however, I need firefox to be able to talk to other apps, for example: opening zoom links in zoom, opening slack links in slack, etc..

For example, when opening a slack link, firefox opens a completely new instance of slack which isn't logged in, despite slack running on my machine with me logged into all my accounts. Likewise zoom, I end up with two instances who don't share configuration.

Is there a way to get firejailed firefox to open links (presumably through xdg-open but I'm not 100% sure) in non-firejailed apps without creating two instances (one of which I think it firejailed) or do I have to firejail all apps I want to use in this way?

Offline

#2 2022-01-11 18:17:51

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,454

Re: Getting firejailed firefox to properly open other apps

When launching links, try using --no-remote and/or another profile with -P.  That's assuming slack/zoom give you the ability to specify parameters for apps that open links. Otherwise you have to set your "default" browser command to include those parameters. That should create another (non-firejailed) firefox process rather than just opening a new window for the existing firejailed firefox instance.

If that works, you do realize the irony of doing this: you're deliberately side-stepping your own firejail?

Offline

#3 2022-01-11 18:57:26

gtf21
Member
Registered: 2020-06-28
Posts: 141
Website

Re: Getting firejailed firefox to properly open other apps

I think that’s the inverse of what I’m trying to achieve — I want firefox to be able to open apps using xdg-open, not other applications to open links in firefox.

The problem is that meeting links often open the associated app, which then results in several versions running.

I can imagine two solutions:
1. Have some mechanism to communicate with non-firejailed apps from firefox (perhaps a defined list)
2. Firejail all those apps, too.

Offline

Board footer

Powered by FluxBB