Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Normally, when you install regular package of KDE application, its icon shows up in KDE menu.

Now, I am making package for app which came in *.zip file, I can install it, run it, but it does not show in KDE menu. So how to register it?

openSUSE 11.4, KDE3.5.10 (!), app: IntelliJ IDEA.

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

You need to create a .desktop file and place it in the right location. On my system they are placed in /usr/share/applications. The spec can be found on FreeDesktop. Copy one and call it intellij.desktop and modify accordingly. I think KDE should pick it up accordingly.

share|improve this answer
    
Thank you very much! –  greenoldman Sep 9 '11 at 17:00
    
You are welcome. –  canen Sep 10 '11 at 6:27
add comment

Creating the .desktop file in /usr/share/applications is correct, and I would add that it is a good idea to create a link to the idea.sh file so the .desktop file points to the link instead of the actual file.

In that manner it is easy to replace the link when a new version comes out instead of having to remember where the .desktop file is and editing it with the new path.

Here is my idea.desktop file;

[Desktop Entry]
Name=IntelliJ IDEA
GenericName=Java Editor
Comment=Develop with pleasure!
Exec=/home/myHomeDir/idea-latest/idea.sh
Icon=/home/myHomeDir/idea-latest/idea.png
Type=Application
MimeType=text/plain;
Categories=Development;
StartupNotify=true
Terminal=false
NoDisplay=false
StartupWMClass=jetbrains-idea-ce
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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