#!/bin/sh # # Enhanced Slim X session startup script # Slim does not provide a means to differentiate between the system-wide # xinitrc scripts and a user's .xinitrc # # Determine the session to start (twm is the fallback): [ -n "$1" ] && MYSESSION=$1 || MYSESSION=twm if [ -f ~/.xinitrc ]; then . ~/.xinitrc $MYSESSION elif [ -f /etc/X11/xinit/xinitrc.${MYSESSION} ]; then . /etc/X11/xinit/xinitrc.${MYSESSION} else . /etc/X11/xinit/xinitrc fi