Subject: | Zenity Directory Chooser |
When using zenity backend, directory chooser is awkward as it re-purposes fselect. In fact, when run under KDE I can't
even select a directory as the dialog keeps choosing files.
zenity --file-selection has --directory option that should be used instead.
$ cat test.pl
use UI::Dialog;
my $d = new UI::Dialog ( backtitle => 'Demo', title => 'Default',
height => 20, width => 65 , listheight => 5,
order => [ 'zenity', 'xdialog' ], debug=>2);
my $text = $d->dselect( path => '/path/to/a/file/or/directory' );
$ perl test.pl
Debug: ENV->UI_DIALOGS: NULL
Debug: ENV->UI_DIALOG: NULL
Debug: order: zenity xdialog
Debug: trying zenity
Debug: using zenity
Debug: fselect: /path/to/a/file/or/directory
Debug: command: /usr/bin/zenity --file-selection --title "Default" --width "65" --height "20" --filename
"/path/to/a/file/or/directory"