<div dir="ltr">Hello,<br>since there is no standard for implementing a file picker in applications, each application uses a different one.<br>If the application has been written in GTK+, it will use the GTK+ file picker, if it has been written in QT it will use QT file picker.<br><br>The problem with this approach is that they differ in look, feature set, accessibility and most importantly in the usage. It also contradicts with the UNIX philosophy of modularity. While I can replace almost every part of my operating system, I cannot do that with the file picker.<br><br>Therefore, I am suggesting a standard for calling a default or a user chosen file picker by a standard command. For example:<br>* Show a file picker with applied filters:<br>* `xdg-filepicker --mime text/plain` or `xdg-filepicker -m text/plain`<br>* `xdg-filepicker --extension *.txt` or `xdg-filepicker -e *.txt`<br>* Allow selecting multiple files:<br><div>* `xdg-filepicker --multi`</div><div><br></div>These commands would return the list of paths to the chosen files. For example:<br>```<br>$ xdg-filepicker --multi         # File picker with multi select and no filters applied opens<br>/home/user/Documents/lorem_ipsum.txt    # After selecting the files in file picker,<br>/home/user/Documents/photo.jpg          # the command returns file list to the standard output<br>```<br><br>I do not know what would be the best approach for setting the file picker. I think that there could <span class="gmail_default" style="font-family:arial,helvetica,sans-serif">alternatively </span>be an environmental variable like `XDG_FILE_PICKER`. There are also a few more things to consider, such as backward compatibility and extensibility. As for extensibility, emacs with GUI shows a hint at the bottom of a GTK file dialog and Libreoffice shows checkbox for opening in read-only mode and choosing file version.<br><br>Regards,<br>Cezary Drożak<div><span class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></span></div><div><span class="gmail_default" style="font-family:arial,helvetica,sans-serif"></span></div></div>