Add a launcher in ubuntu 15.04

Recently I downloaded a linux version of pycharm-edu but the disappointment is that it can be only launched from the terminal. So I did some google to find out how to add pycharm-edu to the launcher panel and it turns out that what it really takes is just serval lines of code.

Every panel on the launcher panel corresponds to a .desktop file in /usr/share/applications. Let us now take a look at an existing file wiznote.desktop for example.

[Desktop Entry]
Name=WizNote
Name[zh_CN]=为知笔记
Name[zh_TW]=为知笔记
Comment=cloud based note-taking application
Comment[zh_CN]=开源云笔记
Comment[zh_TW]=开源云笔记
Exec=WizNote
Terminal=false
Type=Application
StartupNotify=true
Icon=wiznote
Categories=KDE;Qt;Utility;

We can imitate the format of this file and create out own file for pycharm-edu

[Desktop Entry]
Name=pycharm-edu
Comment=A Python IDE
Type=Application
Exec=/opt/pycharm-edu-2.0.3/bin/pycharm.sh
Termial=False
Icon=/opt/pycharm-edu-2.0.3/bin/pycharm.png

 

你可能感兴趣的:(Add a launcher in ubuntu 15.04)