cryptomator / cryptomator-linux

Cryptomator .AppImage for Linux
GNU General Public License v3.0
14 stars 7 forks source link

Apply XDG Base Directory Specification #12

Closed overheadhunter closed 5 years ago

overheadhunter commented 5 years ago

As suggested in cryptomator/cryptomator#710, we want to change the location of certain files. To be able to properly migrate those files, we've implemented the option to specifiy multiple paths like so -Dcryptomator.settingsPath=~/new/path:~/old/path:~/even/older/path:.... Only the first path is used when writing a file. Subsequent paths are fallback options that will be read from in case the preceeding doesn't exist.

Therefore we want to use the following configuration on Linux:

-Dcryptomator.settingsPath=~/.config/Cryptomator/settings.json:~/.Cryptomator/settings.json
-Dcryptomator.ipcPortPath=~/.config/Cryptomator/ipcPort.bin:~/.Cryptomator/ipcPort.bin
-Dcryptomator.logDir=.local/share/Cryptomator/logs
-Dcryptomator.mountPointsDir=~/.local/share/Cryptomator/mnt

Note that the logDir does not start with ~/ since it is directly appended to the home dir in the logback configuration. Therefore it needs to be a path relative to ~/.

overheadhunter commented 5 years ago

Fixed in 5a003b3