weston-init: Refactor, simplify, fix
[AGL/meta-agl.git] / meta-agl-profile-graphical / recipes-graphics / wayland / weston-init / weston.conf.in
1 [Unit]
2 Conflicts=getty@tty@WESTONTTY@.service
3 [Service]
4 Type=notify
5 User=@WESTONUSER@
6 Group=@WESTONGROUP@
7 Environment="XDG_RUNTIME_DIR=@XDG_RUNTIME_DIR@"
8 Environment="XDG_RUNTIMESHARE_DIR=@XDG_RUNTIME_DIR@/share"
9 ExecStartPre=/bin/mkdir -p @XDG_RUNTIME_DIR@/share
10 ExecStartPre=+/usr/bin/chsmack -a User::App-Shared -t @XDG_RUNTIME_DIR@/share
11 ExecStart=@WESTONSTART@
12 TTYPath=/dev/tty@WESTONTTY@
13 StandardInput=tty
14 TTYReset=yes
15 TTYVHangup=yes
16 TTYVTDisallocate=yes
17 UtmpIdentifier=tty@WESTONTTY@