I would like to launch a Qt application on start up. The application uses some of the features from weston/wayland desktop, so it should be launched on top of weston, right after weston is started. Normally, I work with SSH to connect to the target platform and launch the application using following commands:
systemctl stop weston weston --tty=1 ./QtApp
If I do not kill the weston and do not start it with a TTY, I get the following error:
Failed to create display
What I have tried to do is to set up a start up script and integrate it into the systemd:
[Unit] Description = Onyx Service After = weston.service Type = forking [Service] ExecStart = /bin/bash /opt/onyx-start [Install] WantedBy = multi-user.target
However, as you can guess, this does not work. I need to manage to start an application on an existing weston instance that is not started with a TTY option.