diff --git a/src/qz/installer/certificate/CertificateManager.java b/src/qz/installer/certificate/CertificateManager.java index ca2eaf6fe..ebf04459d 100644 --- a/src/qz/installer/certificate/CertificateManager.java +++ b/src/qz/installer/certificate/CertificateManager.java @@ -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));