Bug 107308

Summary: startx does not respect XINITRC
Product: xorg Reporter: Tinu Weber <takeya>
Component: App/xinitAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: trivial    
Priority: low CC: takeya
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Patch that makes startx respect XINITRC none

Description Tinu Weber 2018-07-20 11:34:49 UTC
Created attachment 140730 [details] [review]
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.
Comment 1 GitLab Migration User 2018-08-10 20:31:02 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/app/xinit/issues/14.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.