6.0.9-beta.6: zotero://select links not working
On both Linux and Windows, the following kinds of links clicked in external apps lead to zotero app opening:
- zotero://select/items/HTZ9YYQZ
- zotero://select/library/collections/RI9SMI69
but then zotero does not focus on the items or collections that are supposed to correspond to the links.
I saw an earlier report of a bug where these links did not work for unsynced libraries, but it doesn't work for me even if the library is fully synced.
Does anybody else get this problem? Any ideas what could be the issue?
- zotero://select/items/HTZ9YYQZ
- zotero://select/library/collections/RI9SMI69
but then zotero does not focus on the items or collections that are supposed to correspond to the links.
I saw an earlier report of a bug where these links did not work for unsynced libraries, but it doesn't work for me even if the library is fully synced.
Does anybody else get this problem? Any ideas what could be the issue?
zotero://select/library/items/[itemKey]
.If you're still having trouble after correcting that, if you're running any third-party plugins, try disabling them.
Beyond that, we'd want a Debug ID for an attempt that fails, with all plugins disabled.
Yes, unfortunately it's still not working even with the corrected format. Or for collections, where the format seems to have been correct.
I've disabled plugins and submitted the debug output D1995598352.
The following happens:
(1) zotero comes into focus
(2) nothing is selected OR logged. "Debug output logging" says that 0 lines are logged, and the log window remains as empty as before.
This is on Ubuntu. On Windows the same links now open as expected. So this problem must be that the OS somehow doesn't pass Zotero its links correctly?
I've read https://forums.zotero.org/discussion/78550/getting-zotero-to-work-under-ubuntu-linux-solved, but the solutions posted there don't seem to work on my Ubuntu. Here's what I have so far (re-tested after full reboot):
In zotero.desktop file: MimeType=x-scheme-handler/zotero
The mimeapps.list has the following in the [Default Applications] section:
application/zotero=zotero.desktop
x-scheme-handler/zotero=zotero.desktop
Querying for "xdg-settings get default-url-scheme-handler zotero" and
"xdg-mime query default x-scheme-handler/zotero" both point to zotero.desktop.
ln -s /home/to/Zotero_linux-x86_64/zotero.desktop ~/.local/share/applications/zotero.desktop
My desktop file contains the following lines:
Exec=/path/to/Zotero_linux-x86_64/zotero --url %U
MimeType=x-scheme-handler/zotero;text/plain
x-scheme-handler/zotero
). The installation instructions say to symlink it into ~/.local/share/applications. So I'm a bit unclear why you didn't just use that. As it is, you'd be missing out on various file associations.Zotero does not focus on a selected item if it's not already running.
The command starts Zotero, but does not navigate me to the item.
/opt/zotero/zotero -url zotero://select/groups/1234567/items/ABCDEFGH
If Zotero is already running, it navigates to the item without a problem.
This forces me to run Zotero in the background to be sure I don't need to click the link two times to open an item from a third-party application.
```
(base) > $ cat /snap/zotero-snap/74/meta/gui/zotero-snap.desktop
[Desktop Entry]
Name=Zotero
Exec=zotero-snap -c "$(dirname $(readlink -f %k))/zotero -url %U"
Icon=${SNAP}/meta/gui/icon.png
Type=Application
Terminal=false
Categories=Office;
MimeType=text/plain
```
and
```
(base) > $ cat /snap/zotero-snap/74/zotero.desktop
[Desktop Entry]
Name=Zotero
Exec=bash -c "$(dirname $(realpath $(echo %k | sed -e 's/^file:\/\///')))/zotero -url %U"
Icon=zotero.ico
Type=Application
Terminal=false
Categories=Office;
MimeType=text/plain;x-scheme-handler/zotero;application/x-research-info-systems;text/x-research-info-systems;text/ris;application/x-endnote-refer;application/x-inst-for-Scientific-info;application/mods+xml;application/rdf+xml;application/x-bibtex;text/x-bibtex;application/marc;application/vnd.citationstyles.style+xml
X-GNOME-SingleWindow=true
```
where the order is wrong.