Page 1 of 1

Passing JRE flags to filebot?

Posted: 22 May 2025, 07:22
by fbotguy
Is it possible to pass Java flags to filebot? I'm investigating some Wayland issues on Linux, and I'd like to try a different AWT toolkit (which is available in the JRE) but it fails:

Shell: Select all

$ filebot -Dawt.toolkit.name=WLToolkit

Did you read the manual?
└ https://www.filebot.net/manpage.html

Did you quote and escape your arguments correctly?
└ https://www.filebot.net/help/args.html

args[1] = -Dawt.toolkit.name=WLToolkit

"-Dawt.toolkit.name=WLToolkit" is not a valid option

Re: Passing JRE flags to filebot?

Posted: 22 May 2025, 17:55
by rednoah
:arrow: You can use the JAVA_OPTS environment variable like so:

Shell: Select all

export JAVA_OPTS="-Dawt.toolkit.name=WLToolkit"
filebot


:arrow: Alternatively, can also set Java Properties via the configuration file:

Shell: Select all

filebot -script fn:properties --def awt.toolkit.name=WLToolkit

Re: Passing JRE flags to filebot?

Posted: 22 May 2025, 18:44
by fbotguy
Perfect, thank you!