7

I've created a .desktop file.

[Desktop Entry]
Exec=cd /opt/sqldeveloper/sqldeveloper/bin && bash sqldeveloper $*
Terminal=false
StartupNotify=true
Categories=GNOME;Oracle;Utility;Development;
Type=Application
Icon=/opt/sqldeveloper/icon.png
Name=Oracle SQL Developer
Comment=what to say
Version=s.0.m.t.h.i.n.g
GenericName=ORACLE SQL DEVELOPER

It is present in /usr/share/applications .It is even showing the icon if viewed in Nautilus, but when I press alt (the dash or windows key) and search for it, it is not visible.

Also I tried:

sudo update-desktop-database
Eliah Kagan
  • 117,780
Gokul
  • 375
  • Could you post the contents of the .desktop file? (and I think you mean the Windows -key?) – Jacob Vlijm Sep 20 '14 at 11:32
  • yeah, right, the windows key. – Gokul Sep 22 '14 at 15:48
  • Have you (at least) tried relog? The "Version" string is very uncommon - might be an issue. AFAIK the bash commands should be placed between quotation marks. – roomcayz Sep 22 '14 at 15:55
  • There is a number of issues with your command, using it like that in a .desktop file. Change it and it is ok. I tried your file with another (working) command, then it works fine. I'll anwer it when it is reopened. – Jacob Vlijm Sep 22 '14 at 16:06
  • changed version string .still no result. – Gokul Sep 22 '14 at 16:16
  • It's not the version string that causes the error. – Jacob Vlijm Sep 22 '14 at 16:25
  • 2
  • version should be 2 numbers 1.0 for ex 2) your Exec is wierd, how about bash /opt/sqldeveloper/sqldeveloper/bin/sqldeveloper $* ? (not sure that you can use a wildcard like * in your exec line though) 3) GenericName is the same as Name ? There's no point in that... remove GenericName entry if you're gonna use the same string 4) Is the icon valid ? If the icon doesn't exist, it will most likely never be displayed in Dash 5) Oracle isn't a recognized Category, you should read freedesktop's documentation for more information
  • – MrVaykadji Sep 22 '14 at 16:31
  • @MrVaykadji Most of what you say is not causing the file to be refused. did you try it? I guess not. – Jacob Vlijm Sep 22 '14 at 16:33
  • @JacobVlijm tried it right now. The error is definitively coming from the Exec line. Note that my previous comment is still true regarding freedesktop recommendation :p – MrVaykadji Sep 22 '14 at 16:42
  • Check this question so you can know what exactly is wrong. – Braiam Sep 22 '14 at 16:51
  • 1
    @MrVaykadji Absolutely, all you say is true, but the Exec line is critical – Jacob Vlijm Sep 22 '14 at 17:36
  • This may be useful:http://askubuntu.com/questions/67753/how-do-i-add-an-application-to-the-dash – Sergiy Kolodyazhnyy Sep 22 '14 at 17:48