Skip to content

Commit b999064

Browse files
committed
use temp dir when creating temp xbel file
1 parent eae20da commit b999064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class DolphinPlaces implements QuickAccessService {
3535

3636
private static final int MAX_FILE_SIZE = 1 << 15; //xml is quite verbose
3737
private static final Path PLACES_FILE = Path.of(System.getProperty("user.home"), ".local/share/user-places.xbel");
38-
private static final Path TMP_FILE = PLACES_FILE.resolveSibling("user-places.xbel.cryptomator.tmp");
38+
private static final Path TMP_FILE = Path.of(System.getProperty("java.io.tmpdir"), "user-places.xbel.cryptomator.tmp");
3939
private static final Lock MODIFY_LOCK = new ReentrantLock();
4040
private static final String ENTRY_TEMPLATE = """
4141
<bookmark href="%s">

0 commit comments

Comments
 (0)