Skip to content

Commit 70f1c25

Browse files
committed
fix errors
1 parent f3abf04 commit 70f1c25

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/org/cryptomator/linux/quickaccess/FileConfiguredQuickAccess.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ abstract class FileConfiguredQuickAccess implements QuickAccessService {
2727
FileConfiguredQuickAccess(Path configFile, int maxFileSize) {
2828
this.configFile = configFile;
2929
this.maxFileSize = maxFileSize;
30-
this.tmpFile = configFile.resolve("." + configFile.getFileName() + ".cryptomator.tmp");
30+
this.tmpFile = configFile.resolveSibling("." + configFile.getFileName() + ".cryptomator.tmp");
3131
Runtime.getRuntime().addShutdownHook(new Thread(this::cleanup));
3232
}
3333

@@ -78,7 +78,7 @@ public void remove() throws QuickAccessServiceException {
7878
}
7979

8080
private String readConfig() throws IOException {
81-
return Files.readString(tmpFile, StandardCharsets.UTF_8);
81+
return Files.readString(configFile, StandardCharsets.UTF_8);
8282
}
8383

8484
private void persistConfig(String newConfig) throws IOException {

src/main/java/org/cryptomator/linux/quickaccess/NautilusBookmarks.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ EntryAndConfig addEntryToConfig(String config, Path target, String displayName)
3232
String entryLine = "file://" + uriPath + " " + displayName;
3333
var entry = new NautilusQuickAccessEntry(entryLine);
3434
var adjustedConfig = config.stripTrailing() +
35-
"/n" +
35+
"\n" +
3636
entryLine;
3737
return new EntryAndConfig(entry, adjustedConfig);
3838
}

0 commit comments

Comments
 (0)