Cannot select folder with the AWT file chooser

Support for Ubuntu and other Desktop Linux distributions
Post Reply
Djoss
Posts: 22
Joined: 30 Jul 2018, 17:24

Cannot select folder with the AWT file chooser

Post 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)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Cannot select folder with the AWT file chooser

Post 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.
:idea: Please read the FAQ and How to Request Help.
Djoss
Posts: 22
Joined: 30 Jul 2018, 17:24

Re: Cannot select folder with the AWT file chooser

Post by Djoss »

Thanks for the hint, Zenity is working perfectly! Not having JavaFX as a dependency is a great thing :)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Cannot select folder with the AWT file chooser

Post 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.
:idea: Please read the FAQ and How to Request Help.
Djoss
Posts: 22
Joined: 30 Jul 2018, 17:24

Re: Cannot select folder with the AWT file chooser

Post by Djoss »

FYI, it's also better for Alpine Linux, where JavaFX is not supported yet (no package available).
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Cannot select folder with the AWT file chooser

Post 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!
:idea: Please read the FAQ and How to Request Help.
Post Reply