-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Experimental > Native File Dialog does nothing on Ubuntu Linux #1953
Comments
At the moment the gtk+ file selector is disabled because it creates a hard dependency with gtk+ and gdk libraries. A possible solution in the future would be load gtk+ functions dynamically. |
I haven't tested and the commit dates scare me, but have you seem this project ? |
I see that that project has the same issue: it depends directly on the gtk header files/library. |
I looked on how chromium did it. But it's too complicated... Steam apparently has the same issue... The easiest way I can think of, but it would still be a lot of work, would be decoupling this in your own lib (that would depend on gtk), and have that built separately and dynamically link that... I didn't knew the difficulty of the task. |
I found a solution some applications use. https://gitlab.gnome.org/GNOME/zenity |
Could using the same approach as tinyfiledialogs be an option? It appears to use |
there is also https://github.com/samhocevar/portable-file-dialogs |
We've removed the GTK+ impl and LAF_OS_WITH_GTK flag, as we don't have plans to link with GTK+, and replace it with a new implementation that run Zenity to show the dialog. It's not perfect, there are several issues to improve the UX, but it's good enough to offer a native file dialog on Linux. Related to: aseprite/aseprite#1953 aseprite/aseprite#2354
Great work! Thank you! |
You're welcome @ericoporto! not the best implementation (which would be loading GTK dynamically or something like that), but it's the best we can do right now to support most Linux distributions. It uses the zenity command line utility, there are a couple of issues I'd like to see if I can implemented for zenity:
|
When I select Native File Dialog I expect the application to use a file opener from my system. It instead opens a file open dialog rendered in aseprite instead of a Gtk3+ Window or something more native to Linux.
Aseprite and System version
The text was updated successfully, but these errors were encountered: