cp test.desktop $RPM_BUILD_ROOT/usr/share/applications/ 桌面显示
cp test.desktop $RPM_BUILD_ROOT/etc/xdg/autostart/ 开机自启动
[Desktop Entry] Name=系统 Name[zh_CN]=系统 Comment=Client Exec=/opt/test.exec Icon=/opt/res/tray.png Terminal=false Type=Application Categories=System Encoding=UTF-8 StartupNotify=true
转载于:https://www.cnblogs.com/wangjian8888/p/11609069.html