Can I Use Different Default Browsers on Different Desktops in Linux?

0
12
Asked By CleverNinja42 On

I'm thinking about making the switch to Linux because I really miss the classic feel of an OS built for PCs, rather than one designed for touch screens. Right now, I manage my Windows PC with separate user accounts for personal and work use. This setup allows me to open specific links in dedicated browsers for each user. My question is: can I do something similar in Linux without creating an entirely new user account? Specifically, can I have one desktop set with Firefox as the default browser and easily switch to another desktop where Chrome is the default? It's not essential, but it would definitely streamline my multitasking.

3 Answers

Answered By TechWhiz123 On

When you mention 'desktops,' are you referring to entirely different desktop environments like Gnome and KDE? While you can have multiple desktop environments installed and choose between them at your login screen, that won't let you set different default applications for the same user. A better approach might be to use browser profiles, which allow you to keep work and personal environments separate. You can easily switch between these profiles, which might help with what you're trying to achieve.

Answered By LinuxLover89 On

It's definitely possible to have different default configurations for different users, but if you want it to work for one user across various desktop environments, a bit of scripting will be necessary. You can write a bash script that checks the currently running desktop environment and launches different browsers accordingly. For example, in KDE, you can use a command to get the current desktop. Depending on the desktop environment you choose, the method to query the current state might differ.

Answered By BashGuru99 On

You could write a bash script that selects which browser to open based on the current desktop environment. Then, you could create a .desktop file for your script, setting it up as the default browser with the necessary MimeTypes. This way, you'd have some control over which browser launches depending on the context.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.