sonnyp/Junction

Open Links in different Firefox Profiles?

yesnoidontknow1 opened this issue · 8 comments

Hello, I use 4 different Firefox profiles to separate work from personal from shopping etc. Would be great if I could somehow add those profiles to the selection screen of junction and select the opening of certain links in certain firefox profiles.

Hello

You can make desktop files for your firefox profiles in ~/.local/share/applications

Try something like https://unix.stackexchange.com/questions/484798/how-to-give-each-firefox-profile-its-own-application-icon-in-plasma

Let me know how it goes or if you need help.

Would be nice to contribute to the README "Tips and Tricks".

It may also makes sense for Junction to do this out of the box but this would be the first step.

Thank you for your quick answer! I did as told in the links and separate icons now appear in the task bar for separate browser profiles. But the OS doesn't seem to know it, at least the browser selection stays the same: https://imgur.com/a/2QbxWRG

Could you share the exact .desktop files you created?

As well as operating system name/version and desktop environment ?

Sure! Linux Mint 20.2 / Cinnamon

[Desktop Entry]
Name=Firefox Work
Exec=firefox -P WORK --class=secondclass %u
Comment=
Terminal=false
Icon=7765_winebrowser.0
Type=Application
StartupWMClass=secondclass

So I tried out a bit more, but the selection menu from Junction stays the same whatever I do. I think it would be most practical to have the choice to manually edit which browser / desktop shortcuts can be part of the browser list somewhere in a Junction configuration menu?

You're missing MimeType and probably refreshing the database. The following works for me

# firefox-work.desktop
[Desktop Entry]
Version=1.0
Name=Firefox Work
Exec=firefox -P WORK --class=secondclass %u
Icon=firefox
Terminal=false
Type=Application
StartupWMClass=secondclass
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
cp firefox-work.desktop ~/.local/share/applications
update-desktop-database ~/.local/share/applications
flatpak run re.sonny.Junction https://gnome.org

Well done, works now for me too!