BrowserPicker icon indicating copy to clipboard operation
BrowserPicker copied to clipboard

[FEATURE REQUEST] Setting to Allow for Default Browser Based on Originating Program

Open CHE-11 opened this issue 2 years ago • 5 comments

If you use this for work, you often work in desktop applications like Slack or Asana where you get sent links all day. Instead of having to select a link for each of these programs, being able to define rules in the settings that directs the URL to the correct browser based on the program would be fantastic.

In pseudocode,

if URL comes from Slack, 
         open in Chrome
else
         open in default browser

Awesome software BTW and super useful!!

CHE-11 avatar Jun 07 '22 21:06 CHE-11

Thanks, I find it super useful myself :)

While this is a great idea, I don't really see how I could do this reliably.

Maybe I can detect what window currently has focus in windows? but then you could get some cases where a link suddenly opens in the wrong context when unexpected...

This kind of thing would be more a thing to implement in the source application, like slack - maybe reach out to them and ask if they can add an "override default browser" option to the desktop app?

I'll leave this issue open for now, in lieu of experimentation.

mortenn avatar Jun 08 '22 20:06 mortenn

Sounds Good. Thanks for getting back to me!

CHE-11 avatar Jun 13 '22 23:06 CHE-11

Process Explorer looks at process metadata to determine the parent process so it can make a tree view of processes, in theory this could work here as well, right? I found this StackOverflow answer showing how to get the parent process which may be helpful. Of course, I am assuming that most applications launch URLs in a way that results in them being the parent process of the browser app, I haven't actually confirmed this experimentally.

LB-- avatar Jun 21 '22 16:06 LB--

Thanks for the hint, I shall look into that when I get the time :)

mortenn avatar Sep 24 '22 22:09 mortenn

A simpler version of this can be modeled as using the default browser for URLs not bound to a specific browser. My use case is exactly the same (personal and work virtual desktops with separate browsers), in practice the set of external work-related links is not that big or hard to gather.

Klaster1 avatar Sep 26 '22 09:09 Klaster1