BUG? FileChooser on Ubuntu doesn't allow multiple directories

On Ubuntu/Zenity the file chooser doesn’t handle the case of multiple directories selection.
Whereas it works fine on macOS.
It’s a bit confusing.

const int t = juce::FileBrowserComponent::canSelectMultipleItems
                            | juce::FileBrowserComponent::openMode
                            | juce::FileBrowserComponent::canSelectDirectories;

fileChooser_->launchAsync (t, callback);

In the JUCE sources it seems not possible to get both at the same time.

At first i thought that it was due to a Zenity limitation, but it works fine with following command.

zenity --file-selection --multiple --directory --separator="+++"

Is there any reason to not implement that feature (that i can not see)?

Or am i doing something wrong?

I’ve added a fix for this issue here:

1 Like