wok-current diff weston/stuff/weston-session @ rev 25422
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 17 07:09:31 2022 +0000 (2022-08-17) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/weston/stuff/weston-session Wed Aug 17 07:09:31 2022 +0000 1.3 @@ -0,0 +1,19 @@ 1.4 +#!/bin/sh 1.5 +# 1.6 +# Start Wayland Weston compositor session on SliTaz GNU/Linux 1.7 +# 1.8 + 1.9 +export XDG_CONFIG_HOME="$HOME/.config" 1.10 +export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir 1.11 + 1.12 +# Start DBUS session. 1.13 +if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then 1.14 + dbus-launch --sh-syntax --exit-with-session & 1.15 +fi 1.16 + 1.17 +if [ ! -d "${XDG_RUNTIME_DIR}" ]; then 1.18 + mkdir ${XDG_RUNTIME_DIR} 1.19 + chmod 0700 ${XDG_RUNTIME_DIR} 1.20 +fi 1.21 + 1.22 +exec weston-launch