this link "zotero://open-pdf/... " is not working
Report ID: 1492106395
Hello
I am using the beta version (newest) of Zotero. I extracted annotations, but when I imported a link like "zotero://open-pdf/library/items/3YT77KXE?page=19&annotation=VEYZPR7W" on liber office or obsidian. This link is not active and not working. I'm on ubuntu 20.04
Hello
I am using the beta version (newest) of Zotero. I extracted annotations, but when I imported a link like "zotero://open-pdf/library/items/3YT77KXE?page=19&annotation=VEYZPR7W" on liber office or obsidian. This link is not active and not working. I'm on ubuntu 20.04
I checked it, but it did not solve the problem. The link is created, books are loaded in obsidian, but the pdf did not open when I clicked the link. when I click a windows shows "No apps installed that can open "zotero://select/library/items ..." you can find more applications in software."
By running Obsidian in a terminal I finally observed that it tried but failed to open Zotero with the error "Error: cannot open display: :0". The reason, it turned out, was that I had configured Obsidian to run with Wayland support enabled (to get crisp font rendering on fractionally scaled displays) and Zotero version 6 does not work under Wayland.
Obsidian was configured to use Wayland through a wrapper script that ran
`exec env OBSIDIAN_USE_WAYLAND=1 ".../obsidian.AppImage" -enable-features=UseOzonePlatform -ozone-platform=wayland "$@"`. This somehow caused Obsidian to try to start Zotero in Wayland mode, which does not work.
The fix was to export `GDK_BACKEND=x11` when running Zotero. The way I did it was to edit the Desktop file (/usr/share/applications/zotero.desktop with zotero-deb) to modify the Exec line to `Exec=/usr/bin/env GDK_BACKEND=x11 /usr/lib/zotero/zotero --url %u`.