Tool/software: Linux
Hello, I have two programs that communicate to each other using a Unix domain socket, one as a server, the other as a client, and I'd like to have them come up with each boot. The server program is a Qt application, and runs when Weston/Wayland is available. The other is a Python script with no graphical elements. How I bring the two programs up now, is to open the Qt application, which waits at a blocking listen() call for the Python script to connect over Unix domain socket. Then I run the script, it connects, and the GUI is available. I'd like this to be performed at boot, but I'm unsure how to do it.
How can I make it such that my Qt app is launched after Weston launches, then the python script after that? I've looked into systemd services, however I cannot seem to make the Qt app actually launch after weston is available. These two processes (Qt and Python) should be the last two processes in the startup sequence
Thanks.