Skip Menu |

This queue is for tickets about the UI-Dialog CPAN distribution.

Report information
The Basics
Id: 82093
Status: resolved
Priority: 0/
Queue: UI-Dialog

People
Owner: kevin [...] krinke.ca
Requestors: slobodan [...] miskovic.ca
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.08
Fixed in: 1.09



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"
A dselect() method for Zenity has been addded in 1.09 that uses --directory -- Kevin C. Krinke <kevin@krinke.ca>