Ubuntu添加Intellij IDEA启动器

1. 创建/usr/share/applications/idea.desktop文件。

2. idea.desktop文件内容如下:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=IntelliJ IDEA
GenericName=Java IDE
Comment=IntelliJ IDEA is a code-centric IDE focused on developer    productivity. The editor deeply understands your code and knows its way around the codebase, makes great suggestions right when you need them, and is always ready to help you shape your code.
Exec=/usr/local/lib/idea/bin/idea.sh
Icon=/usr/local/lib/idea/bin/idea.png
Terminal=false
Type=Application
Categories=Development;IDE

3. 更复杂的例子可以参照目录/usr/share/applications/下的其他desktop文件。

    原文作者:Eugene_Wang
    原文地址: https://segmentfault.com/a/1190000000487540
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞