zotero.desktop doesn't open Zotero
I'm on Lubuntu 21.04.
The steps I took to set up Zotero:
1. I downloaded the tarball for Linux for a 64-bits processor.
2. I extracted the tarball, renamed the resulting folder to "Zotero," then moved it to `/opt`.
3. I ran the set_launcher_icon file, which successfully gave zotero.desktop the corresponding icon.
4. I changed the permissions of the dekstop file so I could run it as a program.
5. I checked the option "Trust this executable."
6. I made a symlink at `/usr/share/applications`.
However, the file in `/opt/Zotero` won't open Zotero. Only the shell script does.
The steps I took to set up Zotero:
1. I downloaded the tarball for Linux for a 64-bits processor.
2. I extracted the tarball, renamed the resulting folder to "Zotero," then moved it to `/opt`.
3. I ran the set_launcher_icon file, which successfully gave zotero.desktop the corresponding icon.
4. I changed the permissions of the dekstop file so I could run it as a program.
5. I checked the option "Trust this executable."
6. I made a symlink at `/usr/share/applications`.
However, the file in `/opt/Zotero` won't open Zotero. Only the shell script does.
The goal of these instructions is to be able to run Zotero from the launcher, not launch that file directly.
You say this might not work for Lubuntu. You are probably right. I'll try zotero-deb instead.
Thanks for your feedback!
zotero-deb did the trick. I'm not sure about the Gnome-style desktop files stuff. I'm an Ubuntu noob as you might have guessed, but from the looks of it, it was only the desktop file for the Linux installation that wasn't doing it.
1.- Editing zotero.desktop as follows (use your own path):
#Exec=bash -c "$(dirname $(realpath $(echo %k | sed -e 's/^file:\/\///')))/zotero -url %U"
Exec=/home/ruy/snap/Zotero_linux-x86_64/zotero
2.- Copying the file to ~/.local/share/applications/
Hope this helps you