rchcoffey
rchcoffey

Reputation: 79

Directory select with Zenity

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

Answers (1)

Mark Setchell
Mark Setchell

Reputation: 207728

This seems to work for me:

zenity  --file-selection --title="Choose a directory" --file-filter=""Downloads" "Desktop"" --directory

enter image description here

Upvotes: 4

Related Questions