mirror of
https://github.com/amiwm/amiwm.git
synced 2026-04-14 11:04:18 +00:00
Initial commit!
This commit is contained in:
34
Xsession2
Normal file
34
Xsession2
Normal file
@@ -0,0 +1,34 @@
|
||||
#!/bin/ksh
|
||||
|
||||
unset SDT_ALT_SESSION
|
||||
unset SDT_ALT_HELLO
|
||||
unset SDT_NO_DSDM
|
||||
|
||||
#
|
||||
# Find "xinitrc" file by standard precedence rules and start
|
||||
# the user's AmiWM Desktop.
|
||||
#
|
||||
|
||||
DEFAULT_XINITRC="/usr/local/lib/amiwm/Xinitrc"
|
||||
HOME_XINITRC="$HOME/.xinitrc"
|
||||
|
||||
if [ -z "$XINITRC" ]; then
|
||||
if [ -f $HOME_XINITRC ]; then
|
||||
XINITRC=$HOME_XINITRC
|
||||
else
|
||||
XINITRC=$DEFAULT_XINITRC
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "AmiWM Desktop Login"
|
||||
|
||||
if [ -f $XINITRC ]; then
|
||||
echo "using xinitrc file: $XINITRC"
|
||||
/bin/ksh $XINITRC
|
||||
else
|
||||
echo "xinitrc file: $XINITRC not found"
|
||||
if [ -f $DEFAULT_XINITRC ]; then
|
||||
echo "using xinitrc: $DEFAULT_XINITRC"
|
||||
/bin/ksh $DEFAULT_XINITRC
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user