Page 1 of 1

Cannot select folder with the AWT file chooser

Posted: 25 Feb 2022, 00:17
by Djoss
When using the AWT file chooser (-Dnet.filebot.UserFiles.fileChooser=AWT), a folder can't be selected.

If after clicking "Load"->"Select Folder" a folder is selected from the window, clicking the "Open" button only open that folder. There is no way to tell to open the folder in FileBot.

Issue seen with both 4.9.4 and the latest 4.9.5.

Code: Select all

FileBot 4.9.5 (r9112)
JNA Native: 6.1.0
MediaInfo: 21.09
Tools: fpcalc/1.5.1 7z/16.02 unrar/6.02
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2022-02-23 (r810)
Groovy: 3.0.9
JRE: OpenJDK Runtime Environment 17.0.2
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 12 Core / 8 GB Max Memory / 49 MB Used Memory
OS: Linux (amd64)

Re: Cannot select folder with the AWT file chooser

Posted: 25 Feb 2022, 01:52
by rednoah
The AWT file chooser doesn't have that ability. The JavaFX file chooser does support folder selection, but not folder multi-selection. If you're on Linux, then you'll want to to use the new zenity implementation (added with FileBot 4.9.5) which uses the zenity command-line tool.

Re: Cannot select folder with the AWT file chooser

Posted: 25 Feb 2022, 03:57
by Djoss
Thanks for the hint, Zenity is working perfectly! Not having JavaFX as a dependency is a great thing :)

Re: Cannot select folder with the AWT file chooser

Posted: 25 Feb 2022, 04:46
by rednoah
Djoss wrote: 25 Feb 2022, 03:57 Thanks for the hint, Zenity is working perfectly! Not having JavaFX as a dependency is a great thing :)
Yep. Should make things easier for multi-architecture packages. For amd64 we would have DEB and RPM packages that have the JDK and JFX modules built-in so that shouldn't be an issue there, but due to the folder multi-selection limitation, the zenity implementation will still give you the best user experience.

Re: Cannot select folder with the AWT file chooser

Posted: 01 Mar 2022, 12:24
by Djoss
FYI, it's also better for Alpine Linux, where JavaFX is not supported yet (no package available).

Re: Cannot select folder with the AWT file chooser

Posted: 01 Mar 2022, 12:29
by rednoah
Djoss wrote: 01 Mar 2022, 12:24 FYI, it's also better for Alpine Linux, where JavaFX is not supported yet (no package available).
Ah! Making things work easily for musl libc is a good point!