sioyek icon indicating copy to clipboard operation
sioyek copied to clipboard

using `~` or `$HOME` in config file gives sioyek the wrong directory

Open dtinhvo opened this issue 1 year ago • 1 comments

I am on kUbuntu 24.04, sioyek 2.0.0. I want to use shared_database_path to use a path in home directory, like this: shared_database_path ~/WORK/sioyek or shared_database_path $HOME/WORK/sioyek however, this config option makes sioyek find the wrong config location in /tmp Stacktrace:

database_file_path: /home/myname/.local/share/sioyek/test.db
local_database_file_path: /home/myname/.local/share/sioyek/local.db
global_database_file_path: /tmp/rhythmbox-plugin-playlists-import-export/$HOME/WORK/sioyek
tutorial_path: /usr/share/sioyek/tutorial.pdf
last_opened_file_address_path: /home/myname/.local/share/sioyek/last_document_path.txt
shader_path: /usr/share/sioyek/shaders
Creating shared memory block...
Shared memory created: this is the primary application.
Starting IPC server...
IPC server started.
could not create global databaseunable to open database file

This makes saving annotations and highlights fail.

dtinhvo avatar Oct 13 '24 10:10 dtinhvo

As a workaround you can just use the full path for now.

ahrm avatar Oct 13 '24 10:10 ahrm