Skip to content

Commit

Permalink
use temp dir when creating temp xbel file
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Jul 17, 2024
1 parent eae20da commit b999064
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class DolphinPlaces implements QuickAccessService {

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

0 comments on commit b999064

Please sign in to comment.