14 lines
251 B
Bash
14 lines
251 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
FILE=`zenity --file-selection --title="Select a File"`
|
||
|
|
||
|
case $? in
|
||
|
0)
|
||
|
echo "\"$FILE\" selected.";;
|
||
|
1)
|
||
|
echo "No file selected.";;
|
||
|
-1)
|
||
|
echo "No file selected.";;
|
||
|
esac
|
||
|
|