1

I would like to start a GUI application when the session starts

It is a CM4 with a 5 inch touch screen, the purpose is to launch an application when Ubuntu starts.

Via a terminal, when I start it (./main) it works without problem

  • I tried via startup applications but it doesn't work, I don't know why
  • I tried via systemd but it doesn't seem to work for graphical applications
[Unit]
After=network.service

[Service]
ExecStart=/home/ubuntu/path/main

[Install]
WantedBy=multi-user.target
  • I tried via /etc/rc5.d but that doesn't work either

What am I doing wrong?

nowox
  • 25,978
  • 39
  • 143
  • 293
Kevin Jordil
  • 163
  • 2
  • 3
  • 14

0 Answers0