diff -u -r ../old/etc/X11/xinit/xinitrc ./etc/X11/xinit/xinitrc --- ../old/etc/X11/xinit/xinitrc 2020-08-23 17:36:47.813664000 +0200 +++ ./etc/X11/xinit/xinitrc 2020-09-05 04:00:24.861796000 +0200 @@ -27,7 +27,7 @@ # Source common code shared between the # X session and X init scripts # -. /etc/X11/xinit/xinitrc.common +. /usr/etc/X11/xinit/xinitrc.common # # Special for twm diff -u -r ../old/etc/X11/xinit/xinitrc.common ./etc/X11/xinit/xinitrc.common --- ../old/etc/X11/xinit/xinitrc.common 2020-03-24 12:39:54.076007000 +0100 +++ ./etc/X11/xinit/xinitrc.common 2020-09-05 04:29:58.345399000 +0200 @@ -1,4 +1,4 @@ -# /etc/X11/xinit/xinitrc.common +# /usr/etc/X11/xinit/xinitrc.common # # Common code used in X session and X init scripts. # File shall be sourced but not executed by the scripts. @@ -15,6 +15,7 @@ # Some common user and system files, # XETCDIR=/etc/X11 + XUSRETCDIR=/usr/etc/X11 xdefaults=$HOME/.Xdefaults xresources=$HOME/.Xresources xmodmap=$HOME/.Xmodmap @@ -37,7 +38,7 @@ # # Run user xinit scripts. # -for script in /etc/X11/xinit/xinitrc.d/*; do +for script in /usr/etc/X11/xinit/xinitrc.d/*; do test -e $script || continue test -d $script && continue case "$script" in @@ -140,7 +141,11 @@ # # Start the XIM server # -XIMFILE=/etc/X11/xim +if [ -r /usr/etc/X11/xim ]; then + XIMFILE=/usr/etc/X11/xim +else + XIMFILE=/etc/X11/xim +fi test -r $HOME/.xim && XIMFILE=$HOME/.xim test -r $XIMFILE && source $XIMFILE @@ -167,12 +172,16 @@ # apply system's xkb first if test -s $XETCDIR/Xkbmap; then test -r $XETCDIR/Xkbmap && cat $XETCDIR/Xkbmap | xkbcomp - $DISPLAY + elif test -s $XUSRETCDIR/Xkbmap; then + test -r $XUSRETCDIR/Xkbmap && cat $XUSRETCDIR/Xkbmap | xkbcomp - $DISPLAY fi test -r "$xkbmap" && cat "$xkbmap" | xkbcomp - $DISPLAY elif test -s "$xmodmap"; then test -r "$xmodmap" && xmodmap "$xmodmap" elif test -s $XETCDIR/Xkbmap ; then test -r $XETCDIR/Xkbmap && cat $XETCDIR/Xkbmap | xkbcomp - $DISPLAY +elif test -s $XUSRETCDIR/Xkbmap ; then + test -r $XUSRETCDIR/Xkbmap && cat $XUSRETCDIR/Xkbmap | xkbcomp - $DISPLAY fi # @@ -182,6 +191,9 @@ if test -r $XETCDIR/Xresources ; then xrdb -nocpp -load -retain $XETCDIR/Xresources xrdb -I$HOME -merge "$xdefaults" + elif test -r $XUSRETCDIR/Xresources ; then + xrdb -nocpp -load -retain $XUSRETCDIR/Xresources + xrdb -I$HOME -merge "$xdefaults" else xrdb -I$HOME -load -retain "$xdefaults" fi @@ -192,11 +204,16 @@ if test -r $XETCDIR/Xresources ; then xrdb -nocpp -load -retain $XETCDIR/Xresources xrdb -I$HOME -merge "$xresources" + elif test -r $XUSRETCDIR/Xresources ; then + xrdb -nocpp -load -retain $XUSRETCDIR/Xresources + xrdb -I$HOME -merge "$xresources" else xrdb -I$HOME -load -retain "$xresources" fi elif test -r $XETCDIR/Xresources ; then xrdb -nocpp -load -retain $XETCDIR/Xresources +elif test -r $XUSRETCDIR/Xresources ; then + xrdb -nocpp -load -retain $XUSRETCDIR/Xresources fi # prevent gnome-session from failing (boo#1163262)