Re:Using extra Firefox profiles to make my life better
by darrenf on Friday October 20, 2023 @06:49AM
(#37954485)
I use profiles not containers, and have links opening using the correct profile by wrapping stuff with the `BROWSER` environment variable. For example my Signal.desktop launcher contains this line
For other apps I use `firefox -P work`, e.g. a shell alias for AWS SSO.
[ Parent
| on HN ]
Re:Using extra Firefox profiles to make my life better
by lucideer on Friday October 20, 2023 @07:33AM
(#37954787)
This is a really cool trick, but the nice thing about containers is that you can do this based on where the link is going rather than where the link is coming from.
Re:Using extra Firefox profiles to make my life better
by smaudet on Friday October 20, 2023 @07:44AM
(#37954861)
As I don't use them, I wonder if you can combine the two? So that every source is contained and each destination is contained as well. Might get a bit annoying with somethings, but.
Re:Using extra Firefox profiles to make my life better
by SAI_Peregrinus on Friday October 20, 2023 @11:26AM
(#37957447)
Yes, you can. I use both. My personal profile & work profile are different, and have different container settings.
Re:Using extra Firefox profiles to make my life better
by saltcured on Friday October 20, 2023 @11:28AM
(#37957476)
I use profiles because I want state isolated for my purpose, not per web origin. So for example, I may need to visit google sites related to my employer's Gsuite, or my personal account used with GMail and phone, or as an anonymous user.
This also means that I have become somewhat resistant to scripted UI integrations. I don't really want my apps or sites calling willy-nilly into each other. I want _links_ which I can deliberately copy/paste into different profiles depending on my goals. E.g. do I want to visit someone's Google drive shared link as my personal account, work account, or anonymously so it doesn't pollute either of my drive UIs?
Re:Using extra Firefox profiles to make my life better
by twic on Friday October 20, 2023 @02:06PM
(#37959477)
You could set BROWSER to a script which takes a URL on its command line, uses zenity to pop up a dialogue box showing it to you, with a button for each browser profile, then opens it in the selected one. With buttons for "Do not open", "Copy to clipboard", etc.
Re:Using extra Firefox profiles to make my life better
by numpad0 on Friday October 20, 2023 @03:45PM
(#37960635)
Just the dialog box with $1 should suffice. I do this on Windows. I can copy it to whichever appropriate browser, or simply dismiss it. I have my terrible source code somewhere on the Internet, but it should take less than couple femtoseconds for any HN readers to write their own, I suppose. I recommend everyone do this.
Re:Using extra Firefox profiles to make my life better
by lucideer on Saturday October 21, 2023 @05:31AM
(#37965342)
I have considered doing exactly this on many occasions but have never gotten around to putting it together - though I hadn't considered using Zenity.
I think a polished packaged cross platform app that does this would have some audience -akin to the intent dialogues on android & ios.
Re:Using extra Firefox profiles to make my life better
by twic on Friday October 20, 2023 @02:03PM
(#37959437)
You could set BROWSER to a script which inspects the URL and dispatches to the right profile. This would be mildly awful but extremely unixy.
Re:Using extra Firefox profiles to make my life better
by captn3m0 on Friday October 20, 2023 @08:21AM
(#37955119)
I thought Signal-desktop was electron-only. Are you running it on Firefox, or is this something else.
Re:Using extra Firefox profiles to make my life better
by FinnKuhn on Friday October 20, 2023 @08:24AM
(#37955138)
I think this is about where the Signal App opens links you click within it. So all links opened in Signal always open in their personal Firefox profile for example
Re:Using extra Firefox profiles to make my life better
by darrenf on Friday October 20, 2023 @09:00AM
(#37955431)
Yes, exactly that.
Re:Using extra Firefox profiles to make my life better
by captn3m0 on Friday October 20, 2023 @09:12AM
(#37955530)
Aah, thanks a lot. I’ve been using Junction on KDE for this, which shows a selection screen for links clicked elsewhere.
Re:Using extra Firefox profiles to make my life better
by ssl232 on Friday October 20, 2023 @09:05AM
(#37955472)
Unfortunately this doesn't seem to work to make Thunderbird open links in a particular Firefox profile due to this 21 year old bug: https://bugzilla.mozilla.org/show_bug.cgi?id=216252.