CentOS7自定义添加应用icon

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/maxwell2ic/article/details/83145673

linux下安装了eclipse或者anaconda之后,因为软件自身并未生成桌面icon,如果需要自定义添加,可以在~/.local/sgare/application目录下面添加相应的*.desktop文件。

  1. eclipse
   1 [Desktop Entry]
   2 Encoding=UTF-8
   3 Version=1.0
   4 Type=Application
   5 Name=Eclipse IDE
   6 Categories=Applications;Development;
   7 Comment=Eclipse Integrated Development Environment
   8 Icon=/opt/eclipse/cpp-2018-09/eclipse/icon.xpm
   9 Exec=/opt/eclipse/cpp-2018-09/eclipse/eclipse
  10 StartupNotify=true
  11 Terminal=false
  1. Anaconda-navigator
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Anaconda-navigator
Categories=Applications;Development;
Comment=Anaconda navigator broswer
Icon=/opt/anaconda3/lib/python3.7/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Exec=/opt/anaconda3/bin/anaconda-navigator
StartupNotify=true
Terminal=false

猜你喜欢

转载自blog.csdn.net/maxwell2ic/article/details/83145673