Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a27f92bf authored by Frank Preel's avatar Frank Preel
Browse files

Macos menu (to be continued)

parent 25bdb702
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -174,10 +174,14 @@ public abstract class AppConstants {
     * @return 
     */
    public static String getRootPath(){
        if(System.getProperty("IDE", null) != null)
            return Paths.get("").toAbsolutePath().toString()+Separator;
        else
            return JavaHome+Separator+"bin"+Separator;
    	String rootPath = JavaHome+Separator+"bin"+Separator;
    	if(System.getProperty("IDE", null) != null) {
            rootPath =  Paths.get("").toAbsolutePath().toString()+Separator;
        }
		if (rootPath.indexOf(" ")>0){
			rootPath = "\"" + rootPath + "\"";
		}
		return rootPath;
    }

    /**