zenity/scripts/file.sh
2022-03-24 16:41:21 +00:00

12 lines
No EOL
209 B
Bash
Executable file

#!/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