From 576271fb04e1c2f9ba1f95c0399fef2f73af3b06 Mon Sep 17 00:00:00 2001 From: Trent McPheron Date: Sun, 3 Apr 2022 20:04:00 -0400 Subject: Add Zenity-based file chooser based on the KDialog one (HugLifeTiZ) If available, it is used on Linux regardless of the current desktop because it offers free XDG portal integration, which means it picks the correct file chooser on all desktops, and allows for meaningful file selection in sandbox environments like Flatpak. --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 49825d6be..f316d11de 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -215,6 +215,10 @@ if (FLTK_USE_X11 AND NOT OPTION_USE_WAYLAND) Fl_get_key.cxx ) + if (OPTION_USE_ZENITY) + set (DRIVER_FILES ${DRIVER_FILES} Fl_Native_File_Chooser_Zenity.cxx) + endif (OPTION_USE_ZENITY) + if (OPTION_USE_KDIALOG) set (DRIVER_FILES ${DRIVER_FILES} Fl_Native_File_Chooser_Kdialog.cxx) endif (OPTION_USE_KDIALOG) -- cgit v1.2.3