中标麒麟创建一个开机启动文件,并开启启动QT软件
思路:
利用Linux的 .desktop文件实现开机启动。
在/etc/xdg/autostart 目录下建立一个 test.desktop文件
操作步骤:
第一步:打开/etc/xdg/autostart 目录。
cd /etc/xdg/autostart
第二步:建立 test.desktop文件。
touch test.desktop
第三步:编写文件,并保存。
“vim test.desktop” 进入编写窗口,输入“i” 进入插入模式。
添加代码:
[Desktop Entry]
Name=qtcreator
Exec=/usr/bin/qtcreator
Type=Application
然后按键盘的Esc退出编辑,输入":wq"保存并退出