When using recent versions of the Projucer and clicking “Add existing files”, I cannot add any files, all are greyed out:
I did a git bisect, this is the first bad commit:
committed 06:41PM - 24 May 21 UTC
I tested on Ubuntu 18.04 and Debian 11, both times using the i3 window manager desktop.
In the meantime, I’ve learned to edit the .jucer file by hand
reuk
September 27, 2021, 12:47pm
2
Thanks for reporting, this should be fixed here:
committed 11:23AM - 27 Sep 21 UTC
Zenity and Kdialog only support opening either files or directories
during a sin… gle invocation.
1 Like
I can confirm it works now!
Thanks for the quick fix!
But it seems now that select multiple directories is broken again. I’ll investigate more.
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 t…
reuk
September 27, 2021, 1:26pm
5
On my Ubuntu 21.04 install, multiple selection is working as long as canSelectDirectories
and canSelectMultipleItems
are passed, and canSelectFiles
is not. In testing, it looked like zenity did not allow selecting both files and directories at the same time, so if both canSelectFiles
and canSelectDirectories
are passed, we show a file selection dialog.
On my Ubuntu 20.04.3 LTS it seems not working. I’ll make further test to see what’s hap.
OOPS, sorry for consuming your time for nothing, it’s all my fault.
I badly tested it.
It is OK there too.
reuk
September 27, 2021, 2:01pm
8
No worries, thanks for the update