How to open a file-dialog on Linux? What is the equivalent of Nsopenpanel (macOS), Getopenfilename (Win), Intent.ACTION_GET_CONTENT (android) on Linux?

Asked

Viewed 9 times

0

I am creating a small library to show "save as..." and "open as..." function. I am developing only for JS, Android and Windows. But, implementing for macOS (and iOS) also seems to be easy and so intended to implement for Linux as well.

In Windows we can use the GetOpenFileName to open the dialog box for file selection. On Android there is a Intent which is the Intent.ACTION_GET_CONTENT, that works in an equivalent way. In macos there is Nsopenpanel.


My question is: what would be the equivalent of Linux?

I use X11/Wayland to create the window, then render using Opengl. But, it appears that X11 and even Wayland offer any API to dialog box of this type.

I believe that there is no standard for Linux, as on other platforms, but which would be the closest and most used?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.