AFAIK kdialog is often distributed with KDE, which isn't the case for zenity/Gnome.
> In any case: We still need to address the issue of "guessing" what > desktop the user is running and then choosing either zenity or > kdialog accordingly... There is a env variable XDG_CURRENT_DESKTOP and should indicate the name of running desktop; however, the variable was added silently (which is unfortunate) by Canonical, RedHat, who knows, and there is no definitive spec about it on freedesktop.org. You can check how it is used (with a couple of hacks for other desktops) at http://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-utils-common.in (search for 'detectDE'). Also to not forget 'xdg-file-dialog' intended to be portable among desktops and if another desktop adds a tool like kdialog, it will probably end up there. On Sun, Feb 17, 2013 at 01:35:46PM -0800, Ian MacArthur wrote: > > On 16 Feb 2013, at 07:07, Bill Spitzak wrote: > > > Has anybody looked at exec'ing zenity or kdialog, etc? > > > I'd never even heard of zenity until Greg mentioned that JUCE used it... > > It certainly looks like it could work for us; we'd want > > zenity --file-chooser > > zenity --file-chooser --multiple > > zenity --file-chooser --directory > > I guess to cover our normal cases. > > BUT... > > How widely deployed is it? A lot of the test boxes I have do not have zenity > installed, though they do have gtk libs... Though these machines may be > non-standard and therefore unrepresentative of course! > > In any case: We still need to address the issue of "guessing" what desktop > the user is running and then choosing either zenity or kdialog accordingly... > > Thoughts? > > > _______________________________________________ fltk-dev mailing list fltk-dev@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-dev