Answer the question
In order to leave comments, you need to log in
Why is there a difference in running an application through systemd and manually?
Good afternoon!
Given: Rasperry Pi 4, application on Qt 5.15.2, QML, Raspbian OS Lite. The application is launched with the eglfs plugin. X11 won't start.
Autostart is configured with this systemd script.
[Unit]
Description=Example systemd service.
[Service]
User=user
Group=user
Type=simple
ExecStart=/home/user/deploy/myapp/myapp.sh
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target
Item {
Component {
id: cameraComponent
VideoOutput {
source: camera
focus: visible
Camera {
id: camera
captureMode: Camera.CaptureViewfinder
}
}
}
Loader {
id: cameraLoader
anchors.fill: parent
sourceComponent: cameraComponent
asynchronous: true
function show() {
sourceComponent = cameraComponent
}
function hide() {
sourceComponent = undefined
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question