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

qt: fix uri scheme handling on macOS #3212

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

benma
Copy link
Contributor

@benma benma commented Mar 4, 2025

No description provided.

@benma benma requested a review from bznein March 4, 2025 09:30
In Qt 6.8, the way custom uri schemes are handled on macOS changed.

The commit that changed it is
qt/qtbase@664c7ff. Before,
the URL would be emitted as a FileOpen event with a QFileOpenEvent
object. After this change, it is dispatched to QDesktopServices.

Before, QDesktopServices would only be used to register custom schemes
while the app was running, but now it also is used when the app is
launched with by a URI click (provided the Info.plist entry for it is there
of course).
@bznein
Copy link
Collaborator

bznein commented Mar 4, 2025

Tested and it does work in the app is already running, but if the app is not running, it will open it but not show the AOPP screen :(

@benma
Copy link
Contributor Author

benma commented Mar 4, 2025

Tested and it does work in the app is already running, but if the app is not running, it will open it but not show the AOPP screen :(

Are you sure that in this case, not another copy of your BitBoxApp in your system (with the bug present) is being opened?

@bznein
Copy link
Collaborator

bznein commented Mar 4, 2025

Tested and it does work in the app is already running, but if the app is not running, it will open it but not show the AOPP screen :(

Are you sure that in this case, not another copy of your BitBoxApp in your system (with the bug present) is being opened?

I'll triple check :)

Copy link
Collaborator

@bznein bznein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As usual, you were absolutely right :)

Tested ACK! Thanks!

@benma benma merged commit bf2f89d into BitBoxSwiss:release-v4.47.0 Mar 4, 2025
10 checks passed
@benma benma deleted the urischeme branch March 4, 2025 10:15
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

Successfully merging this pull request may close these issues.

2 participants