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
1 changed files with 2 additions and 1 deletions

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() {