wok diff weston/stuff/weston-session @ rev 20418

Up rsync (3.1.3), perl-file-rsync (0.74), lsyncd (2.2.3), kexec-tools (2.0.17), chkrootkit (0.52), brotli (1.0.5)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 05 21:16:06 2018 +0200 (2018-08-05)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/weston/stuff/weston-session	Sun Aug 05 21:16:06 2018 +0200
     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