188BET靠谱吗Zotero stopped opening from launcher / application pane
Hi there,
188BET靠谱吗Zotero stopped opening on my laptop from the launcher / application pane.I use Debian Testing with GNOME desktop.Presumably a recent package update caused it to stop working, but not sure which.The error when I try and launch it is:
188BET靠谱吗Failed to launch "Zotero"
Desktop file didn't specify Exec field
188BET靠谱吗The Exec line of zotero.desktop currently looks like (unchanged):
188BET靠谱吗Exec=bash -c "$(dirname $(realpath $(echo %k | sed -e 's/^file:\/\///')))/zotero -url %U"
I can still start from the terminal, e.g.188BET靠谱吗by typing /opt/zotero/zotero.188BET靠谱吗If I copy and paste the right hand side of the Exec line in zotero.desktop into the terminal, that also works (if I run it from the /opt/zotero folder).
188BET靠谱吗I have tried changing the Exec line in zotero.desktop in various ways, e.g.188BET靠谱吗to "Exec=/opt/zotero/zotero" etc., but to no avail.
I also tried reinstalling it from the tarball following precisely the instructions on the website: 188BET靠谱吗//www.brodersterzo.com/support/installation(also to no avail)
Any ideas about how to fix this?
Thanks,
Sean
188BET靠谱吗Zotero stopped opening on my laptop from the launcher / application pane.I use Debian Testing with GNOME desktop.Presumably a recent package update caused it to stop working, but not sure which.The error when I try and launch it is:
188BET靠谱吗Failed to launch "Zotero"
Desktop file didn't specify Exec field
188BET靠谱吗The Exec line of zotero.desktop currently looks like (unchanged):
188BET靠谱吗Exec=bash -c "$(dirname $(realpath $(echo %k | sed -e 's/^file:\/\///')))/zotero -url %U"
I can still start from the terminal, e.g.188BET靠谱吗by typing /opt/zotero/zotero.188BET靠谱吗If I copy and paste the right hand side of the Exec line in zotero.desktop into the terminal, that also works (if I run it from the /opt/zotero folder).
188BET靠谱吗I have tried changing the Exec line in zotero.desktop in various ways, e.g.188BET靠谱吗to "Exec=/opt/zotero/zotero" etc., but to no avail.
I also tried reinstalling it from the tarball following precisely the instructions on the website: 188BET靠谱吗//www.brodersterzo.com/support/installation(also to no avail)
Any ideas about how to fix this?
Thanks,
Sean
I managed to fix this issue, although I'm still not sure what exactly was causing it.以解决此问题,我执行了以下操作:
1.188BET靠谱吗Changed the Exec field of zotero.desktop to the full path to zotero, in my case:
188BET靠谱吗Exec=bash -c /opt/zotero/zotero
2.188BET靠谱吗Copied the zotero.desktop file to ~/.local/share/applications/, rather than symlinked it.In my case:
188BET靠谱吗cp /opt/zotero/zotero.desktop ~/.local/share/applications/
Sean
However I believe the step 2 is unnecessary
188BET靠谱吗
script will work.I then edited the .desktop file following [sean.canavy]( 188BET靠谱吗https://forums.zotero.org/discussion/comment/463650/#Comment_463650) and noticed that nothing g was changed.188BET靠谱吗After that I deleted the file `~/.local/share/applications/zotero.desktop` (that pointed to the modified file in zotero installation directory) and ran `/opt/zotero/set_launcher_icon` but the new .desktop file was not created in the applications directory.
188BET靠谱吗The program launched only after I have copied the `zotero.desktop`.I woundered why symlink did not performed.
set_launcher_icon
doesn't create a desktop file or install it into the launcher folder.All it does is update theIcon
line in the bundled .desktop file with the current absolute path.A symlink still works fine.You might have needed to delete and recreate it to get the system to re-read the desktop file, though.
1.188BET靠谱吗change the line in the zotero.desktop file:
188BET靠谱吗Exec=bash -c ~/myopt/zotero/zotero
2.copy the file to ~/.local/share/applications:
188BET靠谱吗cp ~/myopt/zotero/zotero.desktop ~/.local/share/applications
Just changing the line and keeping the symlink did not work.
file:\/\/
in the Exec line:188BET靠谱吗-Exec=bash -c "$(dirname $(realpath $(echo %k | sed -e 's/^file:\/\///')))/zotero -url %U"
188BET靠谱吗+Exec=bash -c "$(dirname $(realpath $(echo %k | sed -e 's/^file:\\/\\///')))/zotero -url %U"
We've made this change for the next Z7 beta (84), and we'll push a new Z6 build with this change.
Exec
line.TheIcon
line is set byset_launcher_icon
.188BET靠谱吗zotero.desktop
would actually require runningset_launcher_icon
again, because it would reset theIcon
path to 188BET靠谱吗just 'zotero.ico'.Changes to the desktop entry are very rare, so this doesn't come up very often, but I guess we need to update our tarball installation instructions to mention this.set_launcher_icon
again before posting, but it didn't work.Meanwhile, I restarted my computer and the icon reappeared.188BET靠谱吗Exec=/bin/bash -c "bash -c "$(dirname $(realpath $(echo %k | sed -e 's/^file:\/\///')))/zotero -url %U""
And it works.
It seems the Exec need an absolute path to bash in Ubuntu 24.04.
188BET靠谱吗Exec=bash -c "$(dirname $(realpath $(echo %k | sed -e 's/^file:\\/\\///')))/zotero -url %U"
188BET靠谱吗in zotero.desktop, then run set_launcher_icon again, and then recreate the sym link.
Thanks!