Reputation: 79
How to use zenity to only allow the user to select certain directory.
my code works file to filter out certain files types
zenity --title "Pick The Software Folder " --file-selection --file- filter=""*.zip" "*.sql" "*.tgz"" --directory
I would like the code to only allow the user to be able to select certain directory's
zenity --title "Pick The Software Folder " --file-selection --file- filter=""Download" "Home" "Desktop"" --directory
Upvotes: 0
Views: 6800
Reputation: 207728
This seems to work for me:
zenity --file-selection --title="Choose a directory" --file-filter=""Downloads" "Desktop"" --directory
Upvotes: 4