1.建立一个桌面文件,forklift-app.desktop

Name填写程序的名字

Exec执行程序的路径

[Desktop Entry]
Version=1.0
Name=forklift-app
Exec=/home/likewei/project/release/forklift-app/AppRun
StartupNotify=false
NoDisplay=true
Type=Application
Categories=System;Utility;Archiving;
Name[zh_CN]=forklift-app

2.把forklift-app.desktop桌面文件复制到 /etc/xdg/autostart

sudo cp /home/likewei/project/release/forklift-app.desktop /etc/xdg/autostart

删除开机启动文件

sudo rm -f /etc/xdg/autostart/forklift-app.desktop

05-24 09:03