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

[Linux/Freedesktop] Implement native file selection dialog support. #80104

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Aug 1, 2023

Same as #79574 and #47499 for Linux. Should allow accessing files outside flatpak sandbox (should auto map files to /run/user/$UID/doc/).

@bruvzg bruvzg added this to the 4.2 milestone Aug 1, 2023
@bruvzg bruvzg force-pushed the freedesktop_native_file_dialog branch from 6c726c3 to 27606cc Compare August 1, 2023 07:52
@YuriSizov YuriSizov requested a review from a team August 1, 2023 09:08
@bruvzg bruvzg force-pushed the freedesktop_native_file_dialog branch from 27606cc to 6fbd1f9 Compare August 1, 2023 09:29
@bruvzg bruvzg force-pushed the freedesktop_native_file_dialog branch from 6fbd1f9 to 0902727 Compare August 1, 2023 09:34
window_id = MAIN_WINDOW_ID;
}

String xid = vformat("x11:%x", (uint64_t)windows[window_id].x11_window);
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: the file dialog part should not depend on X11.

The only change that should be necessary for the Wayland DisplayServer is xid value. Wayland xid should be "wayland:HANDLE", where HANDLE is a surface handle obtained via xdg-foreign protocol.

Copy link
Contributor

Choose a reason for hiding this comment

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

Wayland xid should be "wayland:HANDLE", where HANDLE is a surface handle obtained via xdg-foreign protocol.

Great, thanks for letting me know! I really appreciate that you're making the portal implementation generic.

@bruvzg bruvzg force-pushed the freedesktop_native_file_dialog branch from 0902727 to 192b5f5 Compare August 2, 2023 10:23
@bruvzg bruvzg marked this pull request as ready for review August 4, 2023 09:52
@bruvzg bruvzg requested a review from a team as a code owner August 4, 2023 09:52
@bruvzg bruvzg force-pushed the freedesktop_native_file_dialog branch from 192b5f5 to 6cc314e Compare August 17, 2023 07:56
@akien-mga akien-mga merged commit c72b851 into godotengine:master Aug 17, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

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.

4 participants