diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/Main.java b/HMCL/src/main/java/org/jackhuang/hmcl/Main.java index ff6ac4cb0..09d0787c1 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/Main.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/Main.java @@ -56,10 +56,10 @@ public final class Main { public static void main(String[] args) { System.setProperty("java.net.useSystemProxies", "true"); - System.setProperty("http.agent", "HMCL/" + Metadata.VERSION); System.setProperty("javafx.autoproxy.disable", "true"); + System.getProperties().putIfAbsent("http.agent", "HMCL/" + Metadata.VERSION); // Fix title bar not displaying in GTK systems - System.setProperty("jdk.gtk.version", "2"); + System.getProperties().putIfAbsent("jdk.gtk.version", "2"); checkDirectoryPath();