Skip to content
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

Opening a link with a background process doesn't detect the correct caller #67

Open
Elihpmap opened this issue Dec 16, 2024 · 0 comments

Comments

@Elihpmap
Copy link
Contributor

When opening a link, the detected calling program is always the currently active window.
In the case where the process calling BrowseRouter is a background one (such as AutoHotKey for example), or if the user changes the active windows before the program make the call to BrowseRouter (if the programme lags or has an internal delay), the detected calling program is wrong...

// ----- launching on master branch with "OpenURL" profile from Visual Studio :
16/12/2024 14:27:52 BrowseRouter: Attempting to launch "example.org" for "BrowseRouter (Exécution) - Microsoft Visual Studio"
16/12/2024 14:27:52 BrowseRouter: Found URL preference "*" => "ff" ("C:\Program Files\Mozilla Firefox\firefox.exe")
16/12/2024 14:27:52 BrowseRouter: Launching C:\Program Files\Mozilla Firefox\firefox.exe with args " https://example.org"

// ----- launching on master branch with a custom autohotkey script (with Visual Studio still open)
16/12/2024 14:28:18 BrowseRouter: Attempting to launch "example.org" for "BrowseRouter (Exécution) - Microsoft Visual Studio"
16/12/2024 14:28:18 BrowseRouter: Found URL preference "*" => "ff" ("C:\Program Files\Mozilla Firefox\firefox.exe")
16/12/2024 14:28:18 BrowseRouter: Launching C:\Program Files\Mozilla Firefox\firefox.exe with args " https://example.org"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant