將 eclipse 放到menu, UBUNTU 16.04


eclipse 放到menu

Writing the .destkop file

Open your text editor and type something like the following:
[Desktop Entry]
Version=1.0
Type=Application
Name=<name-of-the-app>
Exec=<path-to-executable-file>
Icon=<path-to-icon-file>
Categories=<list-of-;-separated-categories>
What to change in the above template:
  • Name — put here the name of the application. This will be displayed in the menu;
  • Exec — path to the executable file. For example /opt/clion-2016.2/bin/clion.sh;
  • Icon — path to the icon file. Example: /opt/clion-2016.2/bin/clion.svg;
  • Categories — semicolon-separated list of categories. Here is a list of what you can choose from.
There are several additional parameters you can add, but what you see above should be enough. The last step: put that file somewhere useful, so that the system can be aware of it and update the menu accordingly.

Place the .desktop file in the right place

You can place that file both in /usr/share/applications or in [your-home]/.local/share/applications. What's the difference? The former will enable the menu entry for every user, the latter only for you.










留言

這個網誌中的熱門文章

【多益】現點現做的英文怎麼說呢?

《Microsoft Word 應用》:圖片被文字蓋住解決方法,不可設定為固定行高

如何在Ubuntu系統上安裝Notepad ++ (Install Notepad++ On Ubuntu 16.04 / 17.10 / 18.04 / 20.04)