diff --git a/core/src/main/java/haveno/core/app/HavenoExecutable.java b/core/src/main/java/haveno/core/app/HavenoExecutable.java index 9db352a4..e213bdd6 100644 --- a/core/src/main/java/haveno/core/app/HavenoExecutable.java +++ b/core/src/main/java/haveno/core/app/HavenoExecutable.java @@ -82,6 +82,8 @@ import java.util.concurrent.atomic.AtomicInteger; @Slf4j public abstract class HavenoExecutable implements GracefulShutDownHandler, HavenoSetup.HavenoSetupListener, UncaughtExceptionHandler { + public static final String DEFAULT_APP_NAME = "Haveno"; + public static final int EXIT_SUCCESS = 0; public static final int EXIT_FAILURE = 1; public static final int EXIT_RESTART = 2; diff --git a/core/src/main/java/haveno/core/app/HavenoHeadlessAppMain.java b/core/src/main/java/haveno/core/app/HavenoHeadlessAppMain.java index ae098955..c9411fae 100644 --- a/core/src/main/java/haveno/core/app/HavenoHeadlessAppMain.java +++ b/core/src/main/java/haveno/core/app/HavenoHeadlessAppMain.java @@ -31,7 +31,7 @@ public class HavenoHeadlessAppMain extends HavenoExecutable { protected HeadlessApp headlessApp; public HavenoHeadlessAppMain() { - super("Haveno Daemon", "havenod", "Haveno", Version.VERSION); + super("Haveno Daemon", "havenod", HavenoExecutable.DEFAULT_APP_NAME, Version.VERSION); } public static void main(String[] args) throws Exception { diff --git a/desktop/src/main/java/haveno/desktop/app/HavenoAppMain.java b/desktop/src/main/java/haveno/desktop/app/HavenoAppMain.java index 90acacfa..353895e6 100644 --- a/desktop/src/main/java/haveno/desktop/app/HavenoAppMain.java +++ b/desktop/src/main/java/haveno/desktop/app/HavenoAppMain.java @@ -47,12 +47,10 @@ import java.util.concurrent.ExecutionException; @Slf4j public class HavenoAppMain extends HavenoExecutable { - public static final String DEFAULT_APP_NAME = "Haveno"; - private HavenoApp application; public HavenoAppMain() { - super("Haveno Desktop", "haveno-desktop", DEFAULT_APP_NAME, Version.VERSION); + super("Haveno Desktop", "haveno-desktop", HavenoExecutable.DEFAULT_APP_NAME, Version.VERSION); } public static void main(String[] args) {