-
Notifications
You must be signed in to change notification settings - Fork 17
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
[FEATURE REQUEST] Setting to Allow for Default Browser Based on Originating Program #76
Comments
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. |
Sounds Good. Thanks for getting back to me! |
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. |
Thanks for the hint, I shall look into that when I get the time :) |
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. |
See if GetForegroundWindow works. |
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,
Awesome software BTW and super useful!!
The text was updated successfully, but these errors were encountered: