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. --- CMake/options.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CMake') diff --git a/CMake/options.cmake b/CMake/options.cmake index 25c5a181c..c5c83ae2d 100644 --- a/CMake/options.cmake +++ b/CMake/options.cmake @@ -829,6 +829,15 @@ if (OPTION_FILESYSTEM_SUPPORT) endif (OPTION_FILESYSTEM_SUPPORT) ####################################################################### +####################################################################### +option (OPTION_USE_ZENITY "Fl_Native_File_Chooser may run zenity" ON) +if (OPTION_USE_ZENITY) + set (USE_ZENITY 1) +else () + set (USE_ZENITY 0) +endif (OPTION_USE_ZENITY) +####################################################################### + ####################################################################### option (OPTION_USE_KDIALOG "Fl_Native_File_Chooser may run kdialog" ON) if (OPTION_USE_KDIALOG) -- cgit v1.2.3