View difference between Paste ID: GAtcXXtG and siKZCMNf
SHOW: | | - or go back to the newest paste.
1
[Unit]
2
Description=weston
3
4
[Service]
5
ExecStart=/bin/bash /home/pi/weston-starter
6
7
[Install]
8-
WantedBy=graphical.target
8+
WantedBy=graphical.target
9
10
11
12
13
### the script 
14
15
16
#!/bin/bash
17
18
export WLD="$HOME/local"
19
export PATH="$WLD/bin:$PATH"
20
export LD_LIBRARY_PATH="$WLD/lib:/opt/vc/lib"
21
export PKG_CONFIG_PATH="$WLD/lib/pkgconfig/:$WLD/share/pkgconfig/"
22
export ACLOCAL_PATH="$WLD/share/aclocal"
23
export ACLOCAL="aclocal -I $ACLOCAL_PATH"
24
25
export XDG_RUNTIME_DIR="/run/shm/wayland"
26
export XDG_CONFIG_HOME="$WLD/etc"
27
export XORGCONFIG="$WLD/etc/xorg.conf"
28
29
## I should fix this and add to all apps that are qt 
30
export QT_QPA_PLATFORM=wayland-egl
31
32
/home/pi/local/bin/weston-launch --tty=/dev/tty1 --user=pi -- --log=/home/pi/.config/weston.log