From 63d9cce78ed41c4b604b856bcb373ae1669e81a7 Mon Sep 17 00:00:00 2001 From: crschnick Date: Thu, 9 May 2024 15:00:21 +0000 Subject: [PATCH] Only set wmclass on linux --- app/src/main/java/io/xpipe/app/core/AppPreloader.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/io/xpipe/app/core/AppPreloader.java b/app/src/main/java/io/xpipe/app/core/AppPreloader.java index cfbcfdfbf..84131ebdf 100644 --- a/app/src/main/java/io/xpipe/app/core/AppPreloader.java +++ b/app/src/main/java/io/xpipe/app/core/AppPreloader.java @@ -1,6 +1,7 @@ package io.xpipe.app.core; import io.xpipe.app.issue.TrackEvent; +import io.xpipe.core.process.OsType; import javafx.application.Preloader; import javafx.stage.Stage; import lombok.Getter; @@ -12,6 +13,10 @@ public class AppPreloader extends Preloader { @Override @SneakyThrows public void start(Stage primaryStage) { + if (OsType.getLocal() != OsType.LINUX) { + return; + } + // Do it this way to prevent IDE inspections from complaining var c = Class.forName( ModuleLayer.boot().findModule("javafx.graphics").orElseThrow(), "com.sun.glass.ui.Application");