#!/bin/sh set -e # This file is used by xinit and its wrapper startx. # Display managers like xdm doesn't use this file at all # # See: man startx # Use this script with the following commands: # startx # startx # startx $HOME/.xinitrc i3 # xinit -- $DISPLAY -nolisten tcp vt$XDG_VTNR if [ -f "$HOME/.Xresources" ]; then xrdb -merge "$HOME/.Xresources" fi # NOTE: this stinks a bit, and everything works without this... BUT there are # some parameters set in this collection of scripts of which at the # moment I don't have the time (and will) to grasp the secuirty # consequences of removing them. # run all system xinitrc shell scripts. if [ -d /etc/X11/Xsession.d ]; then SESSIONFILES=$(run-parts --list /etc/X11/Xsession.d) if [ -n "$SESSIONFILES" ]; then set +e for SESSIONFILE in $SESSIONFILES; do . $SESSIONFILE done set -e fi fi # To avoid very solw startup of many GTK apps # https://dbus.freedesktop.org/doc/dbus-update-activation-environment.1.html #dbus-update-activation-environment --systemd DISPLAY # invoke local X session script . "$HOME/.xsession"