zumoshi / BrowserSelect

Browser Select is a utility to dynamically select the browser you want instead of just having one default for all links.
GNU General Public License v2.0
289 stars 39 forks source link

[Feature Request] Support multiple profiles for chromium #89

Open w0000000t opened 2 years ago

w0000000t commented 2 years ago

There are several takes on this (google chrome profiles are supported by design already): https://github.com/zumoshi/BrowserSelect/issues/14 https://github.com/zumoshi/BrowserSelect/issues/81 https://github.com/zumoshi/BrowserSelect/pull/73 https://github.com/zumoshi/BrowserSelect/issues/61

Chromium profiles though (ungoogled chromium in my case, but maybe there is no difference about the userdata path?) have not been tackled. In my case, either automatic setup, or manual addition of different commandlines that launch specific profile,would be equivalent.

U-C-S commented 2 years ago

Hey @w0000000t , I developed a similar project called Hurl (inspired out of this project and for personal usage). It supports adding multiple profiles for the same browser. It's still in early stages as I'm a newbie to WPF.

Project Repo: https://github.com/U-C-S/Hurl

Though, It's currently undocumented. Here's how to do it manually (GUI support soon once I learn MVVM). Once after installing the App, Open it once so the app can create a settings file at %USERPROFILE%/AppData/Roaming/Hurl/UserSettings.json.

Add the following snippet under a chromium browser you want after removing existing property AlternateLaunches

      "AlternateLaunches": [
        {
          "ItemName": "Personal",
          "LaunchArgs": "--profile-directory=\"Default\""
        },
        {
          "ItemName": "Academics",
          "LaunchArgs": "--profile-directory=\"Profile 1\""
        }
      ]

Then, You can access the profiles from right-clicking the respective browser icon image

w0000000t commented 2 years ago

Hey @U-C-S great visuals and feature! In my rush to research something that did what I needed, "NAOW!", I stumbled upon Browser Chooser 2 which can be set to do pretty much what I wanted, so I've settled with that as I got it configured the way I like it, yet I see your project a nifty addition to the available choices for users jumping on this thread ;)