Skip to content

Commit

Permalink
Fix incorrectly placed ssl directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Apr 30, 2024
1 parent 4748186 commit 84138a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/qz/installer/certificate/CertificateManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,11 @@ public static File getWritableLocation(String ... suffixes) throws IOException {
// Last, fallback on a directory we won't ever see again :/
locs.add(TEMP_DIR);
} else {
// Same as above, but with suffixes added (usually "ssl")
// Same as above, but with suffixes added (usually "ssl"), skipping the install location
for(Path saveLocation : SAVE_LOCATIONS) {
locs.add(Paths.get(saveLocation.toString(), suffixes));
if(!saveLocation.equals(SystemUtilities.getJarParentPath())) {
locs.add(Paths.get(saveLocation.toString(), suffixes));
}
}
// Last, fallback on a directory we won't ever see again :/
locs.add(Paths.get(TEMP_DIR.toString(), suffixes));
Expand Down

0 comments on commit 84138a0

Please sign in to comment.