mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-01-12 14:14:52 +08:00
Allow users to override system properties (#2062)
* Allow users to override system properties * update
This commit is contained in:
parent
ec6637728a
commit
5753c2993c
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user