I have implemented a basic Python program that handles HTTP/HTTPS protocol links using the registry details here, and set it as my default browser.
This functions; when clicking a link in an application (other than my browser), my application is called with the link as an argument.
However, I'd also like to know what application the link that was clicked came from (eg: clicking a link from Discord, vs from Steam, vs another application automatically opening the browser to a link) Is this possible?
The endgoal of this project is to automatically open links in different browsers/browser profiles based on the link, and where the link came from. (eg: any link with app.slack.com
in it opens in my work browser, any link with my development URL opens in my testing browser, all other links open in my normal browser)