ahrm / sioyek

Sioyek is a PDF viewer with a focus on textbooks and research papers
https://sioyek.info/
GNU General Public License v3.0
7.17k stars 236 forks source link

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

Open tinhvo-TUM opened 1 month ago

tinhvo-TUM commented 1 month ago

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.

ahrm commented 1 month ago

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