Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After a couple of hours of tinkering I have Oracle SQL Developer installed on ElementaryOS (based off Ubuntu) and created a desktop shortcut Oracle SQL developer.desktop in /usr/share/applicatons

Only thing is, when I open up the applications menu from the GUI it doesn't appear.

Code from the .desktop file:

[Desktop Entry]
Type=Application
Terminal=false
Name=Oracle SQL Developer
Icon=/sqldeveloper/icon.png
Exec=sqldeveloper

Output from ls -l /usr/share/applicatons/Oracle SQL developer.desktop

-rw-r--r-- 1 root root 120 Aug 31 13:48 /usr/share/applications/Oracle SQL Developer.desktop

All other .desktop files are also -rw-r--r--

As a workaround I can open SQL Developer from terminal by running sqldeveloper but I'd like to use the shortcut I created. Any ideas what to do to get this to appear in the applications menu?

Cheers

share|improve this question

migrated from stackoverflow.com Aug 31 '13 at 14:19

This question came from our site for professional and enthusiast programmers.

    
EDIT: copied to dock at the bottom of the screen from the folder, but doesn't appear in applications list – Omar.Ebrahim Aug 31 '13 at 12:49
    
Could you edit your question to include the contents of the .desktop file and also the output of ls -l /usr/share/applicatons/Oracle\ SQL\ developer.desktop please? – terdon Aug 31 '13 at 14:30
    
I can confirm that the exact same setup you describe causes a menu item to appear on my machine (Cinnamon environment). ElemntaryOS uses pantheon do you know that the menu works in a similar way? Does it work if you use a different name (preferably one with no spaces)? Try editing one of the other .desktop files, does that change what appears in the menu? – terdon Aug 31 '13 at 15:33
    
I checked a few of the others, and realised I was missing the category, highlighted in red in Scratch's syntax highlighting. I put it under 'Categories=Development' and it appeared in the menu. – Omar.Ebrahim Aug 31 '13 at 15:34
    
Perfect, could you post that as an answer and accept it please? – terdon Aug 31 '13 at 15:34
up vote 0 down vote accepted

I checked a few of the other .desktop files, and realised I was missing the category, highlighted in red in Scratch's syntax highlighting.

I put it under

Categories=Development

and it appeared.

As a note, you can put multiple categories for one item, but only the ones that highlight in red in (Scratch, I don't know about Gedit) will appear in the menu in Elementary.

share|improve this answer
    
You're missing a ; desktop-entry-validate returns error: value "Development" for string list key "Categories" in group "Desktop Entry" does not have a semicolon (';') as trailing character – Fleuv Apr 21 at 15:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .