Passing JRE flags to filebot?

Any questions? Need some help?
Post Reply
fbotguy
Posts: 9
Joined: 20 Jan 2023, 10:21

Passing JRE flags to filebot?

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

Re: Passing JRE flags to filebot?

Post 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
:idea: Please read the FAQ and How to Request Help.
fbotguy
Posts: 9
Joined: 20 Jan 2023, 10:21

Re: Passing JRE flags to filebot?

Post by fbotguy »

Perfect, thank you!
Post Reply