mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 05:51:31 -04:00
Fix license activation issues on headless machines
This commit is contained in:
parent
30fe2961d1
commit
2dcb3ca2fc
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user