diff --git a/car-ui.service b/car-ui.service index 6659674..b1a35f8 100644 --- a/car-ui.service +++ b/car-ui.service @@ -1,26 +1,16 @@ [Unit] Description=Car UI -#After=network.target -#Wants=network.target -After=lightdm.service -Wants=lightdm.service +After=graphical.target bluetooth.service +Requires=graphical.target [Service] Type=simple User=cheykrym -Group=cheykrym - -# Поднимаем X / lightdm ПЕРЕД UI -#ExecStartPre=/bin/systemctl start lightdm - -# Окружение X Environment=DISPLAY=:0 Environment=XAUTHORITY=/home/cheykrym/.Xauthority Environment=QT_QPA_PLATFORM=xcb - WorkingDirectory=/opt/car_ui ExecStart=/opt/car_ui/car_ui - #Restart=always #RestartSec=2 @@ -28,4 +18,4 @@ NoNewPrivileges=true PrivateTmp=true [Install] -WantedBy=multi-user.target +WantedBy=graphical.target