I want to launch a 'Qt' app on my board during start-up. It's using systemd to start the processes and the graphics backend is wayland. Since it's using systemd, I wrote a simple service to start my app. PSB.
[Unit]
Description=Qt App
After=multi-user.target
[Service]
Type=simple
WorkingDirectory=/home/root
ExecStart=/etc/init.d/qtapp start
[Install]
WantedBy=multi-user.target
That '/etc/init.d/qtapp' script just sources the 'profile', sets the XDG_* envs and starts my Qt app. But with this setup, my app is not lauching at all. But when I checked the list of running process, it lists my app as well. So, it's running but I'm getting nothing on the screen.
If I start the app manually after board is up, it's running fine. I'm not sure why it's not launching from systemd.
Have anyone faced this issue? and any suggestions that I can try to make it working?