Re: Xinitrc in 2.2.0 suggestion
Re: Xinitrc in 2.2.0 suggestion
- Subject: Re: Xinitrc in 2.2.0 suggestion
- From: Peter Collinson <email@hidden>
- Date: Wed, 2 Apr 2008 08:01:11 +0100
On 2 Apr 2008, at 07:42, Harald Hanche-Olsen wrote:
+ Peter Collinson <email@hidden>:
The use of a directory to store starting fragments in 2.2.0 makes it
a little fiddly to have your own start up code.
Is this changeable?
Yes; see below.
I didn't express this too clearly - some things in a distribution may
not be
changeable if it makes it out of step with the wider distribution of
which it is a part -
my thought was more of a political question rather than a technical one.
I'd like to have something start after the font setting but before
the exec to Xquartz happens.
Huh? That makes no sense to me. All the xinitrc stuff happens with an
open connection to the X server, so surely, Xquartz has already run.
Or am I missing something here?
Xquartz is exec'd as the last item in the .xinitrd.d sequence -
actually
making the remaining lines in xinitrc cosmetic - they are not executed.
a) I could replicate the xinitrc and xinitrc.d - and edit the
package locations to suit which seems overkill.
b) Adding something like
userxinitrcd=$HOME/.xinitrc.d
if [ -d $userxinitrcd ] ; then
for f in $userxinitrcd/*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
before the current test and execute - would save me copying xinitrc
- I'd need to copy xinitrc.d contents tho.
Why don't you just put the above code in a little file and drop into
xinitrc.d as one of the files to run? And if this works well for you,
lobby Jeremy to put the new file in the distribution.
- Harald
Yes this is a very good idea - which didn't occur to me at first - and
is the best solution.
80-run-userxinitrc.d.sh Jeremy?
For me I would like it part of the distribution - because it will
presumably be zapped on
the next install - and having to remember to redo it after every
install will be a pain.
_____________________________________________
Peter Collinson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden