ubuntu 添加桌面图标

首先我先表明这样一个简单的问题我搞了许久,就为把idea的启动图标发送到桌面。现在把教训总结一下:
1.首先应切换到home目录下,因为在其他目录下不好修改其运行文件的权限。然后在命令下输入:sudo gedit idea.desktop,然后输入以下的内容:

[Desktop Entry]
Name=IntelliJ IDEA
Comment=IntelliJ IDEA IDE
Exec=/home/panmingzhi/lib/idea-IU-129.713/bin/idea.sh
Icon=/home/panmingzhi/lib/idea-IU-129.713/bin/idea.png
Terminal=false
StartupNotify=true
Type=Application
Categories=Development;IDE;

保存退出后就看到熟悉己久的图标了,然后把这个桌面图标copy到/home/panmingzhi/desk
下,桌面就会出来此图标了。

猜你喜欢

转载自panmingzhi815.iteye.com/blog/1943466