simplify xinitrcby dumping startup.sh

This commit is contained in:
Gwenhael Le Moine 2013-09-19 17:23:24 +02:00
parent 64352dff12
commit 08cd77ae3a

8
xap/awesome/xinitrc.awesome Normal file → Executable file
View file

@ -16,11 +16,9 @@ if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
eval $(dbus-launch --sh-syntax --exit-with-session)
fi
# Start the window manager:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
CK_LAUNCH_SESSION= ck-launch-session
exec ck-launch-session /usr/bin/awesome
else
CK_LAUNCH_SESSION=
exec /usr/bin/awesome
fi
[ -x $HOME/.config/awesome/startup.sh ] \
&& exec $CK_LAUNCH_SESSION $HOME/.config/awesome/startup.sh \
|| exec $CK_LAUNCH_SESSION awesome