Getting zotero:// to work under Ubuntu/Linux [SOLVED]
Hello,
I am trying to open zotero:// links from Chromium on Ubuntu. I've asked the links to be handled by xdg-open. However, zotero doesn't respond.
When I try on the commandline, I get this:
> xdg-open zotero://select/items/5_YUXAKK53
gio: zotero://select/items/5_YUXAKK53: The specified location is not supported
I assume this should work? Or is there another mechanism? What else do I need to set up?
I am trying to open zotero:// links from Chromium on Ubuntu. I've asked the links to be handled by xdg-open. However, zotero doesn't respond.
When I try on the commandline, I get this:
> xdg-open zotero://select/items/5_YUXAKK53
gio: zotero://select/items/5_YUXAKK53: The specified location is not supported
I assume this should work? Or is there another mechanism? What else do I need to set up?
MimeType=x-scheme-handler/zotero
to your desktop file should do it; the deb packages linked to by @bjohas do this automatically.I understand that it's not possible for the official Zotero installatoin help page (https://www.zotero.org/support/installation) to list all endeavours such as https://github.com/retorquere/zotero-deb.
However, linux is probably already in the minority, and it would have saved me a bit of time if https://github.com/retorquere/zotero-deb had been linked from https://www.zotero.org/support/installation.
Would it be possible and desirable to add this? @dstillman
For the long term, I think it's preferable to have the Linux installers (whether snap, flat or deb) just be hosted by Zotero, but until that happens, I'm keeping the debs updated. It's not any significant effort on my part with the automation in place.
(edit: Debian-based is a subset of Linux -- the tarball will work on more Linuxen than my debs will. Snap/flatpack should be able to provide the same coverage as the tarball if I understand correctly)
In the meantime, we're only going to link to packages we distribute from the installation page.
Somehow this no longer works for me (Chrome or Chromium, Ubuntu 20.04). I notice this some time ago, potentially since the update to 20.04.
I've got
MimeType=x-scheme-handler/zotero
in ~/.local/share/applications/zotero.desktop. However, typing zotero:// into the browser doesn't link to Zotero, but just does a google search.
I've dug around the setting of mime types and mime-type caches, but couldn't find anything very straight forward to do ( sudo update-desktop-database didn't fix the above).
Any tips?
I had the same problem. This helped:
xdg-mime default zotero.desktop x-scheme-handler/zotero
Thanks, this solved my problem as well. My MIME type is set correctly but zotero do not respond to the link, until I run your suggested command.