mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 15:10:23 +00:00
Only set wmclass on linux
This commit is contained in:
parent
05884660d7
commit
63d9cce78e
1 changed files with 5 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue