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

Native file open dialogs #93

Open
david-vanderson opened this issue Aug 11, 2024 · 4 comments
Open

Native file open dialogs #93

david-vanderson opened this issue Aug 11, 2024 · 4 comments

Comments

@david-vanderson
Copy link
Owner

#23

Idea is to have dvui create a modal dialog and at the same time use a library to launch the platform's native file open dialog. When the native dialog is closed, the dvui dialog would extract the information and make it available to the app.

@iacore
Copy link
Collaborator

iacore commented Aug 11, 2024

On Linux, use the command zenity.

@iacore
Copy link
Collaborator

iacore commented Aug 31, 2024

I found something nice: https://sourceforge.net/projects/tinyfiledialogs/

It's C, which also can be ported to Zig.

@david-vanderson
Copy link
Owner Author

That looks pretty good. @VisenDev mentioned https://github.com/samhocevar/portable-file-dialogs which compares itself to tinyfiledialogs, so probably either one is a good candidate.

@david-vanderson
Copy link
Owner Author

I just found out SDL3 has support for this: https://wiki.libsdl.org/SDL3/CategoryDialog

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

No branches or pull requests

2 participants