Ubuntu 18.04 - adding a launcher for Zotero
The official instructions for how to install Zotero for Ubuntu seem pretty minimal and maybe they assume users are experienced with Linux/Ubuntu. I'm new to Linux/Ubuntu and have had difficulty getting good results by following Zotero's installation instructions for Linux.
Step one (downloading, extracting, and putting in a directory) was not a problem, but getting the icon for Zotero into the regular application launcher tray has been a big problem.
1. Download the tarball, extract the contents and run zotero from that directory to start Zotero.
- Okay, done. I put it in my Home directory in its own folder. (I've since gotten the impression that "your life is easier" if Zotero goes in the "opt" sub-directory. Which, okay, but just further confuses me.
2. For Ubuntu, the tarball includes a .desktop file that can be used to add Zotero to the launcher. Move the extracted directory to a location of your choice (e.g., /opt/zotero), run the set_launcher_icon script to update the .desktop file for that location,
--- How do I run the "set_launcher_icon" script? I have no idea...
and symlink zotero.desktop into ~/.local/share/applications/ (e.g., ln -s /opt/zotero/zotero.desktop ~/.local/share/applications/zotero.desktop).
--- How do I "symlink" ?? -- I have tried using the supplied code and substituting the path to the installation on my computer where the "opt" is in the example. No sucess.
Zotero should then appear in your launcher.
If my questions are too basic to warrant specific help, could someone please point me to where I can learn enough to understand the instructions for this as posted on Zotero's Linux installation page?
Or....should I just do this:
https://www.cogsci.nl/qnotero
sudo add-apt-repository ppa:smathot/cogscinl
sudo apt-get update
sudo apt-get install zotero-standalone
...and skip Zotero's recommendation? It seems this recommendation gets support in the forums, and it handles the installation location and launcher icon without the user needing to know anything beyond this above super user commands. Then again, installing Zotero property for Linux/Ubunto should be pretty basic, and a good opportunity to also learn more about using Ubuntu.
Step one (downloading, extracting, and putting in a directory) was not a problem, but getting the icon for Zotero into the regular application launcher tray has been a big problem.
1. Download the tarball, extract the contents and run zotero from that directory to start Zotero.
- Okay, done. I put it in my Home directory in its own folder. (I've since gotten the impression that "your life is easier" if Zotero goes in the "opt" sub-directory. Which, okay, but just further confuses me.
2. For Ubuntu, the tarball includes a .desktop file that can be used to add Zotero to the launcher. Move the extracted directory to a location of your choice (e.g., /opt/zotero), run the set_launcher_icon script to update the .desktop file for that location,
--- How do I run the "set_launcher_icon" script? I have no idea...
and symlink zotero.desktop into ~/.local/share/applications/ (e.g., ln -s /opt/zotero/zotero.desktop ~/.local/share/applications/zotero.desktop).
--- How do I "symlink" ?? -- I have tried using the supplied code and substituting the path to the installation on my computer where the "opt" is in the example. No sucess.
Zotero should then appear in your launcher.
If my questions are too basic to warrant specific help, could someone please point me to where I can learn enough to understand the instructions for this as posted on Zotero's Linux installation page?
Or....should I just do this:
https://www.cogsci.nl/qnotero
sudo add-apt-repository ppa:smathot/cogscinl
sudo apt-get update
sudo apt-get install zotero-standalone
...and skip Zotero's recommendation? It seems this recommendation gets support in the forums, and it handles the installation location and launcher icon without the user needing to know anything beyond this above super user commands. Then again, installing Zotero property for Linux/Ubunto should be pretty basic, and a good opportunity to also learn more about using Ubuntu.
Works so well for me.
This is mostly a message to my future self, as I'm sure my past self has seen this and failed to document the solution.
:)
For me the easiest solution was:
1. remove the launcher symlink (the generic icon will disappear from the launchers):
`$ rm ~/.local/share/applications/zotero.desktop`
2. execute the launcher script:
`$ /opt/zotero/set_launcher_icon`
3. symlink the new launcher:
`$ ln -s /opt/zotero/zotero.desktop ~/.local/share/applications/zotero.desktop`
The launcher icon should appear in the launchers, no need to reboot.
./zotero.desktop: line 1: [Desktop: command not found
./zotero.desktop: line 3: -c: command not found
What DID work is doing exactly what @fdeboiss described, but replacing "zotero.desktop" with just "zotero". Shows up in the launcher immediately with the icon and all, works like a charm.
The archive download contains a directory named "Zotero_linux-...", and I cut that down to "Zotero" as many people would. But the command given in the instructions uses a lowercase "zotero", and such details are easy to miss.