7

everyone. I use zotero for my studies and downloaded a tar.gz-file from their website. When I extract it, it has an executable shell script that launches the programme. I wanted to be able to start Zotero from slingshot instead of having to browse to the folder every time I want to open it. So I created my own .desktop file which is called zotero.desktop and I created it while running scratch as root and placed it in /usr/share/applications/ This is the file:

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Zotero
Comment=Bibliografisch programma
Exec=/home/lieven/ICT/Configuratie en Setup/Zotero_linux-x86_64/zotero
Icon=/home/lieven/ICT/Configuratie en Setup/Zotero_linux-x86_64/chrome/icons/default/default48.png
Categories=Utility
Terminal=false

But when I open slingshot and type in Zotero, it isn't listed as an entry. This is also the case after logging out and restarting the computer. What can I do to be able to open Zotero from within slingshot?

  • I think the problem with Exec...are you sure the path is correct? – Ravan Oct 15 '15 at 13:44
6

Correct content of zotero.desktop as follows:

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Zotero
Comment=Bibliografisch programma
Exec=/home/lieven/ICT/Configuratie\ en\ Setup/Zotero_linux-x86_64/zotero
Icon=/home/lieven/ICT/Configuratie\ en\ Setup/Zotero_linux-x86_64/chrome/icons/default/default48.png
Categories=Utility
Terminal=false

Path with space should contain a backslash.

Also make zotero.desktop executable through Terminal:

sudo chmod +x /usr/share/applications/zotero.desktop

PS: No need to get into system files, *.desktop with same success can be placed in ~/.local/share/applications. In this case, command to change permissions of an executable file will look like this:

chmod +x ~/.local/share/applications/zotero.desktop
  • 1
    Thanks a lot, this worked flawlessly. Thanks for the tip to put it in the user's configuration folder, but there are other users on the machine that use the programme, that's why I put it in /usr/share/applications/. – user72805 Oct 15 '15 at 18:10
  • @user72805, I'm glad that my answer helped you. Offtop: my English is very bad? – png2378 Oct 15 '15 at 18:36
  • 1
    You can see that you're not a native speaker, but it's good enough for getting the message across. It's fine, but I'm not a native speaker either :-). – user72805 Oct 16 '15 at 10:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.