Fixed X startup
This commit is contained in:
parent
14c22a5dff
commit
1ffcf67150
1 changed files with 6 additions and 7 deletions
|
@ -9,17 +9,16 @@
|
|||
#umask 022
|
||||
|
||||
# if running bash
|
||||
if [ -n "$BASH_VERSION" ]; then
|
||||
# include .bashrc if it exists
|
||||
if [ -f "$HOME/.bashrc" ]; then
|
||||
. "$HOME/.bashrc"
|
||||
fi
|
||||
if [ -n "$BASH_VERSION" ] && [ -f "$HOME/.bashrc" ]; then
|
||||
."$HOME/.bashrc"
|
||||
fi
|
||||
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if [ -d "$HOME/bin" ] ; then
|
||||
PATH="$HOME/bin:$PATH"
|
||||
PATH="$HOME/bin:$PATH"
|
||||
fi
|
||||
|
||||
# start gui
|
||||
startx
|
||||
if [ -z $DISPLAY ] && [ $XDG_VTNR -eq 1 ]; then
|
||||
exec startx
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue