diff options
| author | Richard Leitner <richard.leitner@skidata.com> | 2020-11-04 15:25:32 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-11-08 14:03:20 +0000 |
| commit | 08bff53ecd6840a1275862c9edf547d24a318cca (patch) | |
| tree | 0c8fd9599bb95922102342bf90b7cecc48ab6c84 /meta/recipes-graphics/wayland | |
| parent | fad3498a79c0a6a01034526e47045c9012c193d0 (diff) | |
| download | poky-08bff53ecd6840a1275862c9edf547d24a318cca.tar.gz | |
weston-init: introduce WESTON_GROUP
Currently the WESTON_USER variable is used as user and group name for
chown'ing XDG_RUNTIME_DIR. If WESTON_USER has no group with the same
name this fails.
Therefore add a new WESTON_GROUP variable which is set to WESTON_USER if
not specified to ensure backwards compatibility.
(From OE-Core rev: 8d4e0ac61671646749a30c72782376307b3e0c82)
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/wayland')
| -rwxr-xr-x | meta/recipes-graphics/wayland/weston-init/weston-start | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-graphics/wayland/weston-init/weston-start b/meta/recipes-graphics/wayland/weston-init/weston-start index ccc7093425..0b93dc964a 100755 --- a/meta/recipes-graphics/wayland/weston-init/weston-start +++ b/meta/recipes-graphics/wayland/weston-init/weston-start | |||
| @@ -33,6 +33,10 @@ if [ -n "$WESTON_USER" ]; then | |||
| 33 | echo "ERROR: If you have WESTON_USER variable set, you also need WESTON_TTY." | 33 | echo "ERROR: If you have WESTON_USER variable set, you also need WESTON_TTY." |
| 34 | exit 1 | 34 | exit 1 |
| 35 | fi | 35 | fi |
| 36 | if [ -z "$WESTON_GROUP" ]; then | ||
| 37 | # no explicit WESTON_GROUP given, therefore use WESTON_USER | ||
| 38 | export WESTON_GROUP="${WESTON_USER}" | ||
| 39 | fi | ||
| 36 | weston_args_user="-u $WESTON_USER -t $WESTON_TTY" | 40 | weston_args_user="-u $WESTON_USER -t $WESTON_TTY" |
| 37 | fi | 41 | fi |
| 38 | 42 | ||
| @@ -75,7 +79,7 @@ if test -z "$XDG_RUNTIME_DIR"; then | |||
| 75 | fi | 79 | fi |
| 76 | if [ -n "$WESTON_USER" ] | 80 | if [ -n "$WESTON_USER" ] |
| 77 | then | 81 | then |
| 78 | chown $WESTON_USER:$WESTON_USER $XDG_RUNTIME_DIR | 82 | chown $WESTON_USER:$WESTON_GROUP $XDG_RUNTIME_DIR |
| 79 | fi | 83 | fi |
| 80 | fi | 84 | fi |
| 81 | 85 | ||
