move x11vnc systemd unit to user unit

This commit is contained in:
TheK4n 2023-09-06 21:34:12 +03:00
parent 0b4f24a052
commit 2b7296287f
2 changed files with 13 additions and 12 deletions

View File

@ -1,12 +0,0 @@
[Unit]
Description=VNC Server for X11
Requires=graphical.target
After=graphical.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -noxdamage -rfbauth /var/run/vnc/passwd -display :0 -forever
Restart=on-failure
[Install]
WantedBy=graphical.target

View File

@ -0,0 +1,13 @@
[Unit]
Description=VNC Server for X11
Requires=default.target
After=default.target
[Service]
Type=simple
ExecStartPre=/bin/sleep 30
ExecStart=/usr/bin/x11vnc -noxdamage -rfbauth ~/.vnc/passwd -display :0 -forever
Restart=on-failure
[Install]
WantedBy=default.target