Skip to content
Snippets Groups Projects
.xinitrc 480 B
Newer Older
  • Learn to ignore specific revisions
  • Eric Vidal's avatar
    Eric Vidal committed
    #!@BINDIR@/bash
    
    Eric Vidal's avatar
    Eric Vidal committed
    
    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
    
    
    Eric Vidal's avatar
    Eric Vidal committed
    list=( $(ls -1 @PATH_ENVIRONMENT@) )
    
    for i in ${list[@]};do
    
    Eric Vidal's avatar
    Eric Vidal committed
        var=$(@PATH_ENVIRONMENT@/${i})
    
        for j in ${var[@]}; do
    		export ${j}
        done
    
    Eric Vidal's avatar
    Eric Vidal committed
    done
    
    66-all up
    
    ## Try consolekit
    if 66-which -q ck-launch-session; then
    	cmd="exec ck-launch-session $@"
    else
    	cmd="exec $@"
    fi
    
    ## Select the session to start
    
    Eric Vidal's avatar
    Eric Vidal committed
    ${cmd} @DESKTOP_CMDLINE@