Browse Source

Linux path added

Martin Herbers 6 years ago
parent
commit
01b50f86ee
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/ui/Main.java

+ 3 - 1
src/ui/Main.java

@@ -600,8 +600,10 @@ public class Main extends Application {
 
     	if (System.getProperty("os.name").toLowerCase().contains("windows"))
     		olipPath = System.getenv("AppData") + File.separator + "Olip" + File.separator;
-    	else
+    	else if (System.getProperty("os.name").toLowerCase().contains("mac"))
     		olipPath = System.getProperty("user.home") + "/Library/Application Support/Olip/";
+    	else	//Linux
+    		olipPath = System.getProperty("user.home") + "/.olip/";
 
         //Load the settings.ini
 		File file = new File(olipPath + "settings.ini");