Getting zotero:// to work under Manjaro KDE/Linux
Hey,
I'm currently using the Zotero Integration Plug-In from Obsidian and would like to link to specific pages in Zotero using zotero:// (either something like "zotero://open-pdf/library/items/WNSJYGEP?page=3" or "zotero://select/library/items/WNSJYGEP?page=3" would do).
1. Before I did anything I got the error message "Could not read file zotero://select/library/items/WNSJYGEP?page=3." from the KIO Client.
2. I found this thread for Ubuntu and tried the suggestions:
2. 1 adding
2. 2. And afterwards running
3. Now I got "Unable to create KIO worker. Unknown protocol 'zotero'" from KIOExec. In order to verify that the problem isn't Obsidian I tested with xdg-open to the same result. (the only difference here is that I have to remove the page information to get that error message. If I include it, I get "zsh: no matches found: zotero://open-pdf/library/items/WNSJYGEP?page=3" directly in the bash)
4. After a bit of googling I found this post on the KDE bug-report platform which sounds a lot like it could be the same issue just with Zotero instead of with Appstream (and on Arch Linux, but Manjaro is based on Arch). This led me to adding %u to the env-variable
5. I then ran
6. When trying to open the links now I at least open up Zotero, but neither the pdf nor the correct page are opened. This is only true for opening them in Obsidian, if I use the terminal Zotero is started and almost immediately closed again. I don't get any error messages anywhere though, not in the terminal and not in Zotero.
I'm now truly at my wits' end on what to try next. Can anyone help?
PS: Information on my Zotero Version and OS:
Zotero:
version => 6.0.35, platform => Linux x86_64, oscpu => Linux x86_64, locale => en-GB, appName => Zotero, appVersion => 6.0.35, extensions => Zotero LibreOffice Integration (6.0.4.SA.6.0.35, extension), Better BibTex for Zotero (6.7.211, extension)
OS:
Manjaro Linux
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 5.15.161-1-MANJARO (64-bit)
Obsidian: v1.6.5
Zotero Integration: 3.1.8
I'm currently using the Zotero Integration Plug-In from Obsidian and would like to link to specific pages in Zotero using zotero:// (either something like "zotero://open-pdf/library/items/WNSJYGEP?page=3" or "zotero://select/library/items/WNSJYGEP?page=3" would do).
1. Before I did anything I got the error message "Could not read file zotero://select/library/items/WNSJYGEP?page=3." from the KIO Client.
2. I found this thread for Ubuntu and tried the suggestions:
2. 1 adding
MimeType=x-scheme-handler/zotero
as environment variable to both instances of zotero.desktop (in .local/share/applications/
and in /bin/Zotero_linux-x86_64/
). This alone changed nothing.2. 2. And afterwards running
xdg-mime default zotero.desktop x-scheme-handler/zotero
3. Now I got "Unable to create KIO worker. Unknown protocol 'zotero'" from KIOExec. In order to verify that the problem isn't Obsidian I tested with xdg-open to the same result. (the only difference here is that I have to remove the page information to get that error message. If I include it, I get "zsh: no matches found: zotero://open-pdf/library/items/WNSJYGEP?page=3" directly in the bash)
4. After a bit of googling I found this post on the KDE bug-report platform which sounds a lot like it could be the same issue just with Zotero instead of with Appstream (and on Arch Linux, but Manjaro is based on Arch). This led me to adding %u to the env-variable
5. I then ran
sudo update-desktop-database
to update the desktop database.6. When trying to open the links now I at least open up Zotero, but neither the pdf nor the correct page are opened. This is only true for opening them in Obsidian, if I use the terminal Zotero is started and almost immediately closed again. I don't get any error messages anywhere though, not in the terminal and not in Zotero.
I'm now truly at my wits' end on what to try next. Can anyone help?
PS: Information on my Zotero Version and OS:
Zotero:
version => 6.0.35, platform => Linux x86_64, oscpu => Linux x86_64, locale => en-GB, appName => Zotero, appVersion => 6.0.35, extensions => Zotero LibreOffice Integration (6.0.4.SA.6.0.35, extension), Better BibTex for Zotero (6.7.211, extension)
OS:
Manjaro Linux
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 5.15.161-1-MANJARO (64-bit)
Obsidian: v1.6.5
Zotero Integration: 3.1.8
-
emilianoeheynsHow did you install Zotero? To my knowledge the .deb packages handle protocol registration; if they don't, please open an issue on GitHub.