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

DesktopHelper: Add openUrl abstraction to support iOS #12698

Merged
merged 3 commits into from Feb 1, 2024

Conversation

fwcd
Copy link
Member

@fwcd fwcd commented Jan 30, 2024

As mentioned in #12674 (comment), iOS supports opening files in the native Files app by replacing file:// URLs with shareddocuments:// URLs. To avoid duplication, this PR introduces a new abstraction, DesktopHelper::openUrl which serves as a drop-in replacement for QDesktopServices::openUrl that handles this schema mapping on iOS.

Since #12688 makes the config directory (including controller mappings etc.) user-accessible, links to the settings directory or user mappings "just work", even on iOS:

replay.mp4

Copy link
Member

@Swiftb0y Swiftb0y left a comment

Choose a reason for hiding this comment

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

lgtm otherwise.

src/util/desktophelper.cpp Outdated Show resolved Hide resolved
Copy link
Member

@Swiftb0y Swiftb0y left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you

@Swiftb0y Swiftb0y merged commit ae53865 into mixxxdj:main Feb 1, 2024
12 checks passed
@fwcd fwcd deleted the desktophelper-openurl branch February 2, 2024 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants