Beaglebone引导至Qt应用程序

Beaglebone引导至Qt应用程序,qt,user-interface,boot,beagleboneblack,systemd,Qt,User Interface,Boot,Beagleboneblack,Systemd,我已经搜索和谷歌搜索了很多,但我不能让这个工作 我希望Beaglebone启动到我的Qt应用程序中。然而,我得到的是GUI启动正常,但几秒钟后Angstrom登录屏幕覆盖了我的GUI,它仍在后台运行 我在/etc/systemd/system中设置了systemd服务,如下所示: #!/bin/sh [Unit] Description=Meta Systemd script [Service] USER=root WorkingDirectory=/home/root ExecStart=/

我已经搜索和谷歌搜索了很多,但我不能让这个工作

我希望Beaglebone启动到我的Qt应用程序中。然而,我得到的是GUI启动正常,但几秒钟后Angstrom登录屏幕覆盖了我的GUI,它仍在后台运行

我在/etc/systemd/system中设置了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语句改为等待其他服务完成。但是什么呢

问候,,
James

以下命令将禁用Beaglebone Black running angstrom上的gdm

update-rc.d -f gdm remove
systemctl disable gdm.service

以下命令将禁用Beaglebone Black running angstrom上的gdm

update-rc.d -f gdm remove
systemctl disable gdm.service
考虑删除

#!/bin/sh
还要将以下内容添加到该文件中

[Unit]
After=getty@.service or getty.target
同时更改以下内容:

[Service]
ExecStart=/home/root/meta6 -qws'
以下内容可能不是必需的

[Service] 
After=local-fs.target
参考

考虑删除

#!/bin/sh
还要将以下内容添加到该文件中

[Unit]
After=getty@.service or getty.target
同时更改以下内容:

[Service]
ExecStart=/home/root/meta6 -qws'
以下内容可能不是必需的

[Service] 
After=local-fs.target
参考


据我所知,您希望您的应用程序可见。因此,它可能会尝试要求X将其设置在顶部(如果可能在X内),或者将您的
After=
选项设置为最后一个图形服务。如果有用于图形启动的设置,您甚至可以尝试设置
After=graphical.target
。实际上,我编辑了[link]/etc/systemd/system/getty.target.wants/getty@tty1.service并注释掉了ExecStart。这将停止出现登录屏幕。然后我的应用程序就可以不间断地启动了。这是个棘手的办法;-)您可以在之后尝试像set
那样做=getty@tty1.service
到您的应用程序单元文件。这将使你的应用程序在tty1图形服务之后运行。据我所知,你希望你的应用程序可见。因此,它可能会尝试要求X将其设置在顶部(如果可能在X内),或者将您的
After=
选项设置为最后一个图形服务。如果有用于图形启动的设置,您甚至可以尝试设置
After=graphical.target
。实际上,我编辑了[link]/etc/systemd/system/getty.target.wants/getty@tty1.service并注释掉了ExecStart。这将停止出现登录屏幕。然后我的应用程序就可以不间断地启动了。这是个棘手的办法;-)您可以在之后尝试像set
那样做=getty@tty1.service
到您的应用程序单元文件。这将使您的应用程序在tty1图形服务之后运行。