wok-next diff weston/stuff/weston-session @ rev 20582

Up libjson-c (0.13.1-20180305)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Apr 14 10:00:23 2018 +0300 (2018-04-14)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/weston/stuff/weston-session	Sat Apr 14 10:00:23 2018 +0300
     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