Linux: zotero://select/... works only with desktop handler using -url %u

Report ID: 1943221958

I am on Ubuntu 24.04.1 with Zotero 8.0.4 and Firefox.

I had a problem where a link like:
zotero://select/library/items/HB3XILWU
would either do nothing from Firefox or only open Zotero without selecting the item.

After testing, I found:

This did not select the item:
/usr/local/bin/zotero 'zotero://select/library/items/HB3XILWU'

This did select the item:
/usr/local/bin/zotero -url 'zotero://select/library/items/HB3XILWU'

Also, these now correctly select the paper:
gio open 'zotero://select/library/items/HB3XILWU'
gtk-launch zotero-select 'zotero://select/library/items/HB3XILWU'

My working desktop entry uses:
Exec=/usr/local/bin/zotero -url %u
MimeType=x-scheme-handler/zotero;

So on my system, the zotero://select/... handler seems to require -url %u. Without -url, Zotero launches but does not process the select URI correctly.

Firefox behavior was inconsistent even after the system handler was fixed.

Installed extensions:

Better BibTeX
Zutilo
  • I have the same issue with Linux Mint 22.2 and Zotero 9.0. Links do not open from Firefox and Obsidian. In terminal, I have the same behavior as ahadil.
Sign In or Register to comment.