Skip to content

core/gtk/glfw: open urls using an apprt action instead of doing it directly #5988

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jcollie
Copy link
Member

@jcollie jcollie commented Feb 25, 2025

Partial implementation of #5256

This implements the core changes necessary to open urls using an apprt action rather than doing it directly from the core.

Implements the open_url action in the GTK and GLFW apprts.

Note that this should not be merged until a macOS-savvy developer can add an implementation of the open_url action for the macOS apprt.

@jcollie jcollie requested review from a team as code owners February 25, 2025 18:19
@tristan957
Copy link
Member

Did you see https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.OpenURI.html? Seems like we should use that and then fallback to xdg-open.

Copy link
Contributor

@mitchellh mitchellh left a comment

Choose a reason for hiding this comment

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

Thanks for starting this, I can take a look for libghostty.

@jcollie jcollie force-pushed the apprt-action-open-url branch from 20f4b88 to 4dde6f4 Compare February 25, 2025 19:13
@jcollie
Copy link
Member Author

jcollie commented Feb 25, 2025

Did you see https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.OpenURI.html? Seems like we should use that and then fallback to xdg-open.

That looks interesting but I'd rather take that on in a follow-up PR after this is merged.

@jcollie jcollie force-pushed the apprt-action-open-url branch 2 times, most recently from d339ac3 to 0a69243 Compare March 10, 2025 12:05
@jcollie jcollie force-pushed the apprt-action-open-url branch from 0a69243 to 70af7a1 Compare March 18, 2025 23:40
@jcollie jcollie force-pushed the apprt-action-open-url branch from 70af7a1 to 7e852df Compare April 10, 2025 21:12
…rectly

Partial implementation of ghostty-org#5256

This implements the core changes necessary to open urls using an apprt
action rather than doing it directly from the core.

Implements the open_url action in the GTK and GLFW apprts.

Note that this should not be merged until a macOS-savvy developer can add
an implementation of the open_url action for the macOS apprt.
@jcollie jcollie force-pushed the apprt-action-open-url branch from 7e852df to aa8e7f2 Compare April 10, 2025 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants