Allow users to override system properties (#2062)
* Allow users to override system properties * update
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user