mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 05:51:31 -04:00
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:
parent
360486848f
commit
507e1c5df9
@ -1,6 +1,5 @@
|
||||
package net.filebot.cli;
|
||||
|
||||
import static java.awt.GraphicsEnvironment.*;
|
||||
import static java.util.Arrays.*;
|
||||
import static java.util.Collections.*;
|
||||
import static net.filebot.Logging.*;
|
||||
@ -156,7 +155,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 && System.console() != null);
|
||||
}
|
||||
|
||||
public boolean isInteractive() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user