Does zenity provide the file/directory GUI? Yes, you can use the option "--file-selection". The command synopsis as following: SYNOPSIS zenity --file-selection [--title=title] [--window-icon=path] --width=width] [--height=height] [--timeout=seconds] [--filename=path] [--multiple] [--directory] [--save] [--separator=character] [--confirm-overwrite] When you use the option "--file-selection", you will see a pop out screen at the directory that you run this command, like below. # cd /etc # zenity --file-selection Just like " --calendar ", if you press "ESC" key or click button "Cancel", the return code will be "1". If you select one file and click "OK", zenity will response the filename and return the code will be "0". And also the same effect about the options "--title", "--timeout"...etc, for saving your time, please refer to the previous post " [Level 2] Shell I...
Just what i wanted
ReplyDeleteOkuboyejo:
DeleteEnjoy it. :)
Stanley Huang