If FileBot is called with --license with an interactive console, then force console license activation (to avoid issues when the GUI starts up but X is screwed up on some Linux systems, thus crashing on startup, failing to activate the license)

This commit is contained in:
Reinhard Pointner 2018-11-29 01:55:03 +07:00
parent 2dcb3ca2fc
commit 35484ac730
1 changed files with 1 additions and 1 deletions

View File

@ -156,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 && isHeadless());
return rename || getSubtitles || check || list || mediaInfo || revert || extract || script != null || (license != null && (isHeadless() || System.console() != null));
}
public boolean isInteractive() {