I'm currently using Centos on an embedded system, and I need to start a X session when the OS boots, in order to start an application in fullscreen.
The application MUST be started as a specific user.
In the .xinitrc of my user, I added few lines to start my application.
Actually I tried to create a new service in systemd, but I didn't succeed to start the application. Service is starting when I'm in a tty, but when I'm rebooting the computer, I get the tty login.
Journalctl informs me that X11 didn't start because of a socket connection refused.
Code: Select all
[Unit]
After=systemd-user-sessions.service
Description= My fullscreen app
[Service]
ExecStart=/usr/bin/xinit
User=my_user
[Install]
WantedBy=multi-user.target
Any help would be really appreciated,
Have a nice day.