188BET靠谱吗6.0.9-beta.6: zotero://select links not working

edited June 25, 2022
188BET靠谱吗On both Linux and Windows, the following kinds of links clicked in external apps lead to zotero app opening:

188BET靠谱吗- zotero://select/items/HTZ9YYQZ
188BET靠谱吗- zotero://select/library/collections/RI9SMI69

188BET靠谱吗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?
  • That first one isn't a valid URL.They take the form 188BET靠谱吗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 IDfor an attempt that fails, with all plugins disabled.
  • Thanks for the quick reply!

    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.
  • 188BET靠谱吗That includes Zotero startup and syncing.Can you provide a Debug ID for just clicking the link, after all startup activity has stopped?
  • Ok I just tried to do the following: (a) enable the logging, (b) clearing existing log, (c) clicking on the select: links from an external application.

    The following happens:

    188BET靠谱吗(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.188BET靠谱吗So this problem must be that the OS somehow doesn't pass Zotero its links correctly?

    I've read 188BET靠谱吗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):

    188BET靠谱吗In zotero.desktop file: MimeType=x-scheme-handler/zotero

    The mimeapps.list has the following in the [Default Applications] section:

    188BET靠谱吗application/zotero=zotero.desktop
    188BET靠谱吗x-scheme-handler/zotero=zotero.desktop

    188BET靠谱吗Querying for "xdg-settings get default-url-scheme-handler zotero" and
    188BET靠谱吗"xdg-mime query default x-scheme-handler/zotero" both point to zotero.desktop.

  • Ok in case anybody else struggles with this on Ubuntu: for me the problem was solved by establishing a symbolic link for the desktop file:

    188BET靠谱吗ln -s /home/to/Zotero_linux-x86_64/zotero.desktop ~/.local/share/applications/zotero.desktop

    My desktop file contains the following lines:

    188BET靠谱吗Exec=/path/to/Zotero_linux-x86_64/zotero --url %U
    188BET靠谱吗MimeType=x-scheme-handler/zotero;text/plain
  • edited June 29, 2022
    188BET靠谱吗To be clear, the thread you linked to is years old, and the desktop file currently bundled with the Zotero tarball contains a different Exec line and a much more comprehensive MimeType line (but which includes 188BET靠谱吗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.
  • I have a related issue.
    188BET靠谱吗Zotero does not focus on a selected item if it's not already running.

    188BET靠谱吗The command starts Zotero, but does not navigate me to the item.
    188BET靠谱吗/opt/zotero/zotero -url zotero://select/groups/1234567/items/ABCDEFGH


    188BET靠谱吗If Zotero is already running, it navigates to the item without a problem.

    188BET靠谱吗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.
  • edited 8 days ago
    In the latest snap release the `MimeType` is set to `MimeType=text/plain`:

    ```
    188BET靠谱吗(base) > $ cat /snap/zotero-snap/74/meta/gui/zotero-snap.desktop
    [Desktop Entry]
    188BET靠谱吗Name=Zotero
    188BET靠谱吗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
    ```
    188BET靠谱吗(base) > $ cat /snap/zotero-snap/74/zotero.desktop
    [Desktop Entry]
    188BET靠谱吗Name=Zotero
    188BET靠谱吗Exec=bash -c "$(dirname $(realpath $(echo %k | sed -e 's/^file:\/\///')))/zotero -url %U"
    188BET靠谱吗Icon=zotero.ico
    Type=Application
    Terminal=false
    Categories=Office;
    188BET靠谱吗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.
  • 188BET靠谱吗After fixing the MimeType, zotero is gaining focus but is not selecting the corresponding item.Any idea how to fix this?
Sign Inor Registerto comment.