1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-26 15:24:51 +02:00

Fix network execution in Ubuntu

This commit is contained in:
Isaaku
2019-07-24 18:50:16 -05:00
parent ea3ee9ef0a
commit 00575e446e

View File

@@ -222,7 +222,14 @@ public class Utils {
} }
private static File getJarDirectory() { private static File getJarDirectory() {
return Utils.class.getResource("/rip.properties").toString().contains("jar:") ? new File(System.getProperty("java.class.path")).getParentFile() : new File(System.getProperty("user.dir")); File jarDirectory = Utils.class.getResource("/rip.properties").toString().contains("jar:")
? new File(System.getProperty("java.class.path")).getParentFile()
: new File(System.getProperty("user.dir"));
if (jarDirectory == null)
jarDirectory = new File(".");
return jarDirectory;
} }
/** /**