xdg-file-dialog — command line tool for providing file and directory selection dialogs
xdg-file-dialog openfilename [--title ] [TITLEFILENAME]
xdg-file-dialog openfilenamelist [--title ] [TITLEFILENAME]
xdg-file-dialog savefilename [--title ] [TITLEFILENAME]
xdg-file-dialog directory [--title ] [TITLEDIRNAME]
xdg-file-dialog { --help | --manual | --version }
The xdg-file-dialog program can be used to let the native file selection dialog handle file and directory input.
xdg-file-dialog is for use inside a desktop session only. It is not recommended to use xdg-file-dialog as root.
FILENAME can optionally be used to
specify path and filename of a preselection.
FILENAME can optionally
be used to specify path and filename of a preselection.
FILENAME can optionally be used to
specify path and filename of a preselection.
DIRNAME can optionally be used to
specify a path of a preselection.
--title TITLE--help--manual--versionAn exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned:
1234
xdg-file-dialog savefilename /tmp/foobar.png
Asks for a save file name starting in directory /tmp and suggesting foobar.png as the filename
xdg-file-dialog directory --title "Select a target folder" /tmp
Asks for a directory name starting in directory /tmp using the text "Select a target folder" as the dialog's title/caption.