[Unit] Description=Iris Eye Protection Software After=lightdm.service [Service] Type=oneshot Environment=DISPLAY=:0 User=your_username ExecStart=/bin/bash -c 'DISPLAY=:0 xhost 127.0.0.1 && /opt/iris/Iris.sh' KillSignal=SIGINT Restart=on-failure RestartSec=2 [Install] WantedBy=multi-user.target