Zotero 7 Beta: Linking doesn't work on Linux with recommended zotero.desktop
This is a follow-up of this thread: https://forums.zotero.org/discussion/107660/zotero-7-beta-how-to-link-to-an-entry-or-a-file-from-another-app
If following the official instructions for installing Zotero on Linux, see https://www.zotero.org/support/installation#how_do_i_install_zotero, then linking from other apps to a Zotero entry or attached file isn't working.
This is due to the content of the zotero.desktop file, which after the official instructions looks in my case like:
[Desktop Entry]
Name=Zotero
Exec=bash -c "$(dirname $(realpath $(echo %k | sed -e 's/^file:\/\///')))/zotero -url %U"
Icon=/home/sojusnik/Apps/Zotero/chrome/icons/default/default256.png
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
But if "Exec=" is replaced with the following, then everything works fine:
Exec=/home/sojusnik/Apps/Zotero/zotero -url %U
Maybe one of the developers can comment if this is a proper solution or maybe there's another way in order to be compatible with the official installation instructions?
If following the official instructions for installing Zotero on Linux, see https://www.zotero.org/support/installation#how_do_i_install_zotero, then linking from other apps to a Zotero entry or attached file isn't working.
This is due to the content of the zotero.desktop file, which after the official instructions looks in my case like:
[Desktop Entry]
Name=Zotero
Exec=bash -c "$(dirname $(realpath $(echo %k | sed -e 's/^file:\/\///')))/zotero -url %U"
Icon=/home/sojusnik/Apps/Zotero/chrome/icons/default/default256.png
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
But if "Exec=" is replaced with the following, then everything works fine:
Exec=/home/sojusnik/Apps/Zotero/zotero -url %U
Maybe one of the developers can comment if this is a proper solution or maybe there's another way in order to be compatible with the official installation instructions?
Your recommendation doesn't allow installing the 7 Beta as a .deb, only stable builds are provided. I would prefer using Zotero 7 due to the new features of the reader.
The solution with tweaking the "Exec=" is working fine, at least it was before doing those steps described here: https://forums.zotero.org/discussion/comment/443441/#Comment_443441, because now clicking on a link when Zotero is closed, doesn't open Zotero any more, as described here: https://forums.zotero.org/discussion/comment/443442/#Comment_443442.
You just need to replace
zotero
withzotero-beta
in the last installation step:->
sudo apt install zotero-beta
Edit : a copr exist ;-)
https://copr.fedorainfracloud.org/coprs/mozes/zotero7/