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

lwjgl-nfd doesn't use Flatpak file portal #893

Closed
MMarco94 opened this issue Jun 19, 2023 · 2 comments
Closed

lwjgl-nfd doesn't use Flatpak file portal #893

MMarco94 opened this issue Jun 19, 2023 · 2 comments

Comments

@MMarco94
Copy link

Version

3.3.2

Platform

Linux x64

JDK

openjdk17

Module

NFD

Bug description

When calling NativeFileDialog.NFD_PickFolder or NativeFileDialog.NFD_OpenDialog witrhin the Flatpak runtime, I would expect it to use the Flatpak file portal.

However, they instead open a "native" looking file picker dialog that doesn't have full file system access.

nativefiledialog-extended should support file portal, and I can see that you do have some code to support them, however it is not working for me at all.

Stacktrace or crash log output

No response

@Spasi
Copy link
Member

Spasi commented Aug 14, 2023

Hey @MMarco94,

The next 3.3.3 snapshot will include optional support for Portal. Can be enabled with Configuration.NFD_LINUX_PORTAL.set(true) (or with the -Dorg.lwjgl.nfd.linux.portal=true system property).

Thanks!

@MMarco94
Copy link
Author

That's amazing, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants