mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-26 15:24:51 +02:00
Fix execution in Ubuntu
This commit is contained in:
@@ -222,8 +222,7 @@ public class Utils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static File getJarDirectory() {
|
private static File getJarDirectory() {
|
||||||
String[] classPath = System.getProperty("java.class.path").split(";");
|
return Utils.class.getResource("/rip.properties").toString().contains("jar:") ? new File(System.getProperty("java.class.path")).getParentFile() : new File(System.getProperty("user.dir"));
|
||||||
return classPath.length > 1 ? new File(System.getProperty("user.dir")) : new File(classPath[0]).getParentFile();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user