Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Jan 13, 2025
1 parent f3abf04 commit 70f1c25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ abstract class FileConfiguredQuickAccess implements QuickAccessService {
FileConfiguredQuickAccess(Path configFile, int maxFileSize) {
this.configFile = configFile;
this.maxFileSize = maxFileSize;
this.tmpFile = configFile.resolve("." + configFile.getFileName() + ".cryptomator.tmp");
this.tmpFile = configFile.resolveSibling("." + configFile.getFileName() + ".cryptomator.tmp");
Runtime.getRuntime().addShutdownHook(new Thread(this::cleanup));
}

Expand Down Expand Up @@ -78,7 +78,7 @@ public void remove() throws QuickAccessServiceException {
}

private String readConfig() throws IOException {
return Files.readString(tmpFile, StandardCharsets.UTF_8);
return Files.readString(configFile, StandardCharsets.UTF_8);
}

private void persistConfig(String newConfig) throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ EntryAndConfig addEntryToConfig(String config, Path target, String displayName)
String entryLine = "file://" + uriPath + " " + displayName;
var entry = new NautilusQuickAccessEntry(entryLine);
var adjustedConfig = config.stripTrailing() +
"/n" +
"\n" +
entryLine;
return new EntryAndConfig(entry, adjustedConfig);
}
Expand Down

0 comments on commit 70f1c25

Please sign in to comment.