Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dtinhvo opened this issue Oct 13, 2024 · 1 comment
Open

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

dtinhvo opened this issue Oct 13, 2024 · 1 comment

Comments

@dtinhvo
Copy link

dtinhvo commented Oct 13, 2024

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
Copy link
Owner

ahrm commented Oct 13, 2024

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

Repository owner deleted a comment Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@ahrm @dtinhvo and others