我已经搜索&谷歌搜索了很多,但我不能得到这个工作。Beaglebone启动到Qt应用程序
我想让Beaglebone启动进入我的Qt应用程序。但是,我得到的是GUI启动正常,但几秒钟后,Angstrom登录屏幕将覆盖我的GUI,该GUI继续在后台运行。
我建立一个systemd服务如下在/ etc/systemd /系统:
#!/bin/sh
[Unit]
Description=Meta Systemd script
[Service]
USER=root
WorkingDirectory=/home/root
ExecStart=/bin/sh -c 'source /etc/profile ; /home/root/meta6 -qws'
After=local-fs.target
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
我与活化它:
systemctl enable meta.service
我禁用GDM用:
systemctl disable gdm
我怀疑也许我应该改变After语句来等待直到其他服务完成。但是什么?
问候, 詹姆斯
我的理解你希望你的应用程序可见。所以,它可能会试着要求X将其设置在最前面(如果X内可以)或将“After =”选项设置为最后一个图形服务。如果有图形启动的话,你甚至可以尝试设置'After = graphical.target'。 –
其实,我编辑了[link] /etc/systemd/system/getty.target.wants/[email protected]并注释掉了ExecStart。这会停止登录屏幕的显示。我的应用程序然后启动不中断。 – jas99
呃。这是一个棘手的方式;-) 你可以尝试像设置'后= getty @ tty1.service'做你的应用程序单元文件。 这将使您的应用程序在tty1图形服务之后运行。 –