1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

Fix license activation issues on headless machines

This commit is contained in:
Reinhard Pointner 2018-11-29 01:50:56 +07:00
parent 30fe2961d1
commit 2dcb3ca2fc

View File

@ -1,5 +1,6 @@
package net.filebot.cli;
import static java.awt.GraphicsEnvironment.*;
import static java.util.Arrays.*;
import static java.util.Collections.*;
import static net.filebot.Logging.*;
@ -155,7 +156,7 @@ public class ArgumentBean {
public List<String> arguments = new ArrayList<String>();
public boolean runCLI() {
return rename || getSubtitles || check || list || mediaInfo || revert || extract || script != null || (license != null && System.console() != null);
return rename || getSubtitles || check || list || mediaInfo || revert || extract || script != null || (license != null && isHeadless());
}
public boolean isInteractive() {