1028的weston显示是有marix.service服务来实现的,查看marix.service服务的状态 root@forlinx:~# systemctl status matrix.service ● matrix.service - matrix-browser Loaded: loaded (/lib/systemd/system/matrix.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2022-03-30 08:47:12 CST; 7min ago Main PID: 529 (matrix-browser.) Tasks: 9 (limit: 1978) CGroup: /system.slice/matrix.service ├─529 /bin/bash /usr/bin/matrix-browser.sh └─541 /usr/bin/matrix-browser 127.0.0.1 Mar 30 08:47:12 forlinx systemd[1]: Started matrix-browser. Mar 30 08:47:13 forlinx matrix-browser.sh[529]: libpng warning: iCCP: known incorrect sRGB profile Mar 30 08:47:13 forlinx matrix-browser.sh[529]: libpng warning: iCCP: known incorrect sRGB profile Mar 30 08:47:14 forlinx matrix-browser.sh[529]: Using Wayland-EGL Mar 30 08:47:14 forlinx matrix-browser.sh[529]: Using the 'xdg-shell-v6' shell integration |
可以看到是通过/usr/bin/matrix-browser.sh脚本来实现的,如下 root@forlinx:~# cat /usr/bin/matrix-browser.sh #!/bin/bash touch /usr/share/matrix-gui-2.0/js/* touch /usr/share/matrix-gui-2.0/css/* . /etc/profile.d/weston.sh /usr/bin/matrix-browser 127.0.0.1 |
可以通过修改matrix-browser.sh脚本来实现单独的QT程序开机自启,下面以开机自启4G QT程序为例, root@forlinx:~# vi /usr/bin/matrix-browser.sh #!/bin/bash touch /usr/share/matrix-gui-2.0/js/* touch /usr/share/matrix-gui-2.0/css/* . /etc/profile.d/weston.sh #/usr/bin/matrix-browser 127.0.0.1 /usr/bin/fltest_qt_4g |
保存退出,reboot重启即可开机自QT应用程序,如下所示:
|