Skip to content

Commit

Permalink
Network fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaaku committed Jul 24, 2019
1 parent c2e42f2 commit 187fd3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/rarchives/ripme/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ private static String getMacOSConfigDir() {
}

private static File getJarDirectory() {
return new File(System.getProperty("java.class.path")).getParentFile();
String[] classPath = System.getProperty("java.class.path").split(";");
return classPath.length > 1 ? new File(System.getProperty("user.dir")) : new File(classPath[0]).getParentFile();
}

/**
Expand Down

0 comments on commit 187fd3c

Please sign in to comment.