Re: [fltk/fltk] Can we use the qt/kde file picker instead of gtk? (#278)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Can we use the qt/kde file picker instead of gtk? (#278) erco77 12:17 Oct 06 top right image

If there's a way to open the KDE/Qt file chooser dialog from the command line, it might not be too hard to modify Fl_Native_File_Chooser (FNFC) to invoke that, using its API to control presetting the browsing directory, choosing file|directory browser, etc.

Actually, providing a generic way to tell FNFC thru its API to invoke any command line tool to open a file browser might be useful, as apparently these tools change names almost as often as new linux distros are released (i.e. often).

I understand zenity(1) was the way to do this in GTK, but it's been surpassed (I think) by yad(1). KDE has something similar, e.g. kdilog --getopenfilename from what I can tell.

FNFC could invoke this command line tool in the background with fork() and pipes so as to not to block the FLTK app loop while the browser is open, and on completion, returns the user's chosen file through the API as per usual.

In this way the application can choose which browser is used, and perhaps even support different command line file choosers by probing to see what's available (e.g. looking for kdialog, yad, zenity, etc) without FLTK having to track all these different tool names.

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Direct Link to Message ]
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]

Comments are owned by the poster. All other content is copyright 1998-2022 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to ''.