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.09k stars 235 forks source link

sioyek closes instantly in ArchWSL? #718

Open midpl0x opened 1 year ago

midpl0x commented 1 year ago

I might be doing something wrong. Everything else seems to be working without issues, except sioyek. As soon as I try to launch it, it closes instantly it seems.

default_config_path: /etc/sioyek/prefs.config Error: default_config_path: /etc/sioyek/prefs.config doesn't exist! default_keys_path: /etc/sioyek/keys.config Error: default_keys_path: /etc/sioyek/keys.config doesn't exist! user_config_path: [ 0 ] /etc/xdg/sioyek/prefs_user.config user_config_path: [ 1 ] /home/casper/.config/sioyek/prefs_user.config user_keys_path: [ 0 ] /etc/xdg/sioyek/keys_user.config user_keys_path: [ 1 ] /home/casper/.config/sioyek/keys_user.config database_file_path: /home/casper/.local/share/sioyek/test.db local_database_file_path: /home/casper/.local/share/sioyek/local.db global_database_file_path: /home/casper/.local/share/sioyek/shared.db tutorial_path: /usr/share/sioyek/tutorial.pdf last_opened_file_address_path: /home/casper/.local/share/sioyek/last_document_path.txt shader_path: /usr/share/sioyek/shaders Error: shader_path: /usr/share/sioyek/shaders doesn't exist! Creating shared memory block... Shared memory created: this is the primary application. Starting IPC server... IPC server started. Segmentation fault

I have no idea what all that means? Do I need to add the configs manually? What does Segmentation fault even mean? I tried to google it, but that didnt help very much.

ahrm commented 1 year ago

I have not tested sioyek on WSL. Why don't you just use the windows version of sioyek?

midpl0x commented 1 year ago

Apologies. The reason for using sioyek with WSL is, I simply cannot get synctex to work properly. I think it's called synctex? The double-clicking pdf and then move cursor to line in Vim. So I figured it might work better with WSL. Also, if I use sioyek in windows, I cannot have it open my latex-document, unless it's the first file to open.

I mean, it's all just QoL, but I didn't figure there'd be any issues with my solution.

ahrm commented 1 year ago

How did you install sioyek in WSL? Did you use the official appimage here? https://github.com/ahrm/sioyek/releases/tag/v2.0.0

midpl0x commented 1 year ago

How did you install sioyek in WSL? Did you use the official appimage here? https://github.com/ahrm/sioyek/releases/tag/v2.0.0

I've tried the official release, as well as the ones from AUR.

Could the issue be, that I've added Sioyek to PATH in Windows, that it tried to open both at the same time? I dont know if that's how it works. I'm still learning linux, but maybe? I get the same error message every time, Segmentation fault. I might just be doing something completely wrong. Sorry if I'm wasting your time.