Skip to content
Snippets Groups Projects
.xinitrc 509 B
#!@BINDIR@/bash

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

list=( $(ls -A1 @PATH_ENVIRONMENT@ | sort) )
for i in ${list[@]};do
    var=( $(<@PATH_ENVIRONMENT@/${i}) )
    for j in ${var[@]}; do
        export ${j}
    done
done

66 tree start

## Try consolekit
if 66-which -q ck-launch-session; then
    cmd="exec ck-launch-session $@"
else
    cmd="exec $@"
fi

## Select the session to start
${cmd} @DESKTOP_CMDLINE@