1 if [ -z "$USER" ]; then
5 if [ -z "$XDG_RUNTIME_DIR"]; then
6 # User may not have sufficient privilege to make a directory in
7 # /run/user/$USER. Fall back on a subdirectory /tmp instead.
8 XDG_RUNTIME_DIR=/tmp/run-$USER
11 if [ ! -d "${XDG_RUNTIME_DIR}" ]; then
12 mkdir -p $XDG_RUNTIME_DIR
13 # This really should be 700 but we currently have to run Weston as
15 chmod 777 $XDG_RUNTIME_DIR
18 export XDG_RUNTIME_DIR
20 if [ -z "$HOME" ] || [ "$HOME" = "/" ]; then
24 export ELM_ENGINE=wayland_egl
25 export ECORE_EVAS_ENGINE=wayland_egl