1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-25 23:06:22 +02:00

Fix execution in Ubuntu

This commit is contained in:
Isaaku
2019-07-24 18:04:31 -05:00
parent 187fd3c5c6
commit ea3ee9ef0a

View File

@@ -222,8 +222,7 @@ public class Utils {
}
private static File getJarDirectory() {
String[] classPath = System.getProperty("java.class.path").split(";");
return classPath.length > 1 ? new File(System.getProperty("user.dir")) : new File(classPath[0]).getParentFile();
return Utils.class.getResource("/rip.properties").toString().contains("jar:") ? new File(System.getProperty("java.class.path")).getParentFile() : new File(System.getProperty("user.dir"));
}
/**