Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open Links in different Firefox Profiles? #9

Closed
yesnoidontknow1 opened this issue Oct 21, 2021 · 8 comments
Closed

Open Links in different Firefox Profiles? #9

yesnoidontknow1 opened this issue Oct 21, 2021 · 8 comments

Comments

@yesnoidontknow1
Copy link

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.

@sonnyp
Copy link
Owner

sonnyp commented Oct 21, 2021

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.

@yesnoidontknow1
Copy link
Author

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

@sonnyp
Copy link
Owner

sonnyp commented Oct 21, 2021

Could you share the exact .desktop files you created?

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

@yesnoidontknow1
Copy link
Author

yesnoidontknow1 commented Oct 21, 2021

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

@yesnoidontknow1
Copy link
Author

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?

@sonnyp
Copy link
Owner

sonnyp commented Oct 21, 2021

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

@yesnoidontknow1
Copy link
Author

Well done, works now for me too!

@sonnyp
Copy link
Owner

sonnyp commented Oct 24, 2021

1629270

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants