Bug 107308 - startx does not respect XINITRC
Summary: startx does not respect XINITRC
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/xinit (show other bugs)
Version: unspecified
Hardware: All All
: low trivial
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-20 11:34 UTC by Tinu Weber
Modified: 2018-08-10 20:31 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Patch that makes startx respect XINITRC (208 bytes, patch)
2018-07-20 11:34 UTC, Tinu Weber
no flags Details | Splinter Review

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.