https://help.gnome.org/users/zenity/stable/
Zenity permet de créer uniquement des dialogues en bash. Pas de fenêtre mère.
Exemple calendrier:
#!/bin/sh if zenity --calendar \ --title="Select a Date" \ --text="Click on a date to select that date." \ --day=10 --month=8 --year=2004 then echo $? else echo "No date selected" fi
Exemple file selection:
#!/bin/sh FILE=`zenity --file-selection --title="Select a File"` case $? in 0) echo "\"$FILE\" selected.";; 1) echo "No file selected.";; -1) echo "An unexpected error has occurred.";; esac