[Unit] Description=Weston, a Wayland compositor, as a user service Documentation=man:weston(1) man:weston.ini(5) Documentation=https://wayland.freedesktop.org/ # Activate using a systemd socket Requires=weston.socket After=weston.socket # Since we are part of the graphical session, make sure we are started before Before=graphical-session.target [Service] Type=notify TimeoutStartSec=60 WatchdogSec=20 # Defaults to journal #StandardOutput=journal StandardError=journal EnvironmentFile=-/etc/default/weston Environment="XDG_RUNTIME_DIR=/home/weston" Environment="WESTON_USER=weston" Environment="WL_EGL_GBM_FENCE=0" # add a ~/.config/weston.ini and weston will pick-it up ExecStart=/usr/bin/weston-start --modules=systemd-notify.so --log=/home/weston/weston.log $OPTARGS ExecStop=/usr/bin/killall weston [Install] WantedBy=graphical-session.target