Skip to content

Instantly share code, notes, and snippets.

@rkitover
Created February 22, 2017 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rkitover/78af03c9bd9ec0ab8da493c505bfe1c1 to your computer and use it in GitHub Desktop.
Save rkitover/78af03c9bd9ec0ab8da493c505bfe1c1 to your computer and use it in GitHub Desktop.
launch weston as your user on boot
[Unit]
Description=Weston Wayland compositor startup
RequiresMountsFor=/run
[Service]
User=rkitover
EnvironmentFile=-/etc/default/weston
Environment="XDG_RUNTIME_DIR=/run/user/1000"
ExecStartPre=/usr/bin/sudo /bin/mkdir -p /run/user/1000
ExecStartPre=/usr/bin/sudo /bin/chown rkitover:rkitover /run/user/1000
ExecStartPre=/bin/chmod 0700 /run/user/1000
ExecStart=/usr/bin/sudo -E -- /usr/bin/openvt -v -w -s -- su rkitover -c "/usr/bin/weston-launch -- $OPTARGS 2>~/.weston-errors"
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment