Assigned to Xorg Project Team
Link to original bug (#107308)
Created attachment 140730 Patch that makes startx respect XINITRC
While xinit allows setting the XINITRC environment variable to specify an alternative location for the user's xinitrc file, startx simply ignores and overwrites that value; specifically this line:
userclientrc=$HOME/.xinitrc
Would it be possible to change this line to this instead?
userclientrc="${XINITRC:-$HOME/.xinitrc}"
This would use the value stated in $XINITRC, and fall back to ~/.xinitrc if it's unset/empty (matching the behaviour of xinit). Attached is a patch that would fix this.
Patch 140730, "Patch that makes startx respect XINITRC":
startx-xinitrc.patch
Any updates on getting this or !7 (merged) merged?
I was also considering adding support for $XDG_CONFIG_HOME, however I was unsure if that should be XDG_CONFIG_HOME/xinitrc, XDG_CONFIG_HOME/xorg/xinitrc, or simply unnecessary to begin with.
Tim Egenton (bbd1b75f) at 07 Dec 14:24
startx: Source XINITRC and XSERVERRC variables
Tim Egenton (8a3f363b) at 06 Dec 21:49
Source XINITRC and XSERVERRC