diff --git a/src/main/java/org/dpsoftware/FireflyLuciferin.java b/src/main/java/org/dpsoftware/FireflyLuciferin.java index 42cb4398..d6d364e1 100644 --- a/src/main/java/org/dpsoftware/FireflyLuciferin.java +++ b/src/main/java/org/dpsoftware/FireflyLuciferin.java @@ -123,6 +123,7 @@ public FireflyLuciferin() { powerSavingManager = new PowerSavingManager(); powerSavingManager.setLastFrameTime(LocalDateTime.now()); NativeExecutor.setHighPriorityThreads(MainSingleton.getInstance().config.getThreadPriority()); + logEnvironment(); } /** @@ -605,4 +606,21 @@ private void clean() { } } + /** + * Log the environment in use + */ + private void logEnvironment() { + if (NativeExecutor.isLinux()) { + if (NativeExecutor.isFlatpak()) { + log.info("Running on Linux using Flatpak sandbox"); + } else if (NativeExecutor.isSnap()) { + log.info("Running on Linux using Snap sandbox"); + } else { + log.info("Running on Linux"); + } + } else if (NativeExecutor.isWindows()) { + log.info("Running on Windows"); + } + } + }