aboutsummaryrefslogtreecommitdiff
path: root/desktop/icewm/xinitrc.icewm
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/icewm/xinitrc.icewm')
-rw-r--r--desktop/icewm/xinitrc.icewm11
1 files changed, 8 insertions, 3 deletions
diff --git a/desktop/icewm/xinitrc.icewm b/desktop/icewm/xinitrc.icewm
index 825c128463f9..a93c203c52af 100644
--- a/desktop/icewm/xinitrc.icewm
+++ b/desktop/icewm/xinitrc.icewm
@@ -2,8 +2,8 @@
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
-sysresources=@LIBDIR@/X11/xinit/.Xresources
-sysmodmap=@LIBDIR@/X11/xinit/.Xmodmap
+sysresources=/etc/X11/xinit/.Xresources
+sysmodmap=/etc/X11/xinit/.Xmodmap
# Merge in defaults and keymaps
[ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources
@@ -22,5 +22,10 @@ fi
# Start IceWM
icewmbg &
icewmtray &
-exec icewm-session
+
+if [ -z "$XDG_SESSION_COOKIE" -a -x /usr/bin/ck-launch-session ]; then
+ ck-launch-session icewm-session
+else
+ exec icewm-session
+fi