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:
@@ -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"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user