Linux 添加程序图标到开始菜单中
Linux平台的Ubuntu系统中,开始菜单中的程序都在/usr/share/applications/目录下,文件格式都是xxxx.desktop
================================================================
[Desktop Entry]
Type=Application
Name=SetPro
Comment=SetPro
Exec=/usr/lib/SetPro
Icon=/usr/lib/LOGO.png
StartupNotify=true
Terminal=false
Type=Application
Categories=PackageManager;GTK;System;Settings;Viewer;
Name[zh_CN]= 设置
Comment[zh_CN]=设置
==============================================================
按如上代码,创建一个SetPro.desktop的文件复制到/usr/share/applications/目录下,在开始菜单中即可看到程序图标了
作者:Dozeoo
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。