Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #178019

Re: Whats the alternative to .xinitrc

From Vincent Lefevre <vincent@vinc17.net>
Newsgroups linux.debian.user
Subject Re: Whats the alternative to .xinitrc
Date 2017-02-20 13:40 +0100
Message-ID <tcVq2-4F1-15@gated-at.bofh.it> (permalink)
References (1 earlier) <tckqu-70u-17@gated-at.bofh.it> <tcwBk-65E-29@gated-at.bofh.it> <tcFOh-35c-1@gated-at.bofh.it> <tcU0X-3Tt-27@gated-at.bofh.it> <tcUDE-48G-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2017-02-20 12:49:34 +0100, tomas@tuxteam.de wrote:
> On Mon, Feb 20, 2017 at 12:08:00PM +0100, Vincent Lefevre wrote:
> > On 2017-02-19 19:52:24 +0000, Brian wrote:
> > > On Sun 19 Feb 2017 at 11:00:25 +0100, Vincent Lefevre wrote:
> > > 
> > > > On 2017-02-18 20:59:44 +0000, Brian wrote:
> > > > > The advice in startx(1) is sound but nothing stops you using a ,xinitrc.
> > > > > The command doesn't work in a ,xinitrc? Perhaps it is incorrect or the
> > > > > DM ignores it.
> > > > 
> > > > AFAIK, .xinitrc is not used by DM's, in particular because X has
> > > > already been started.
> > > 
> > > I'd agree with the first statement. I am very unsure about the reason
> > > advanced.
> > 
> > Indeed. I think that the reason is that the DM runs /etc/X11/Xsession
> > (which starts the window manager at the end), so that this would clash
> > with the .xinitrc file, which could do the same thing (the session
> > files would be run twice).
> 
> No, no, no. Xsession is invoked by the display manager (DM) as you
> said (or by startx). Its job is to... uh... get the session running
> (window manager, environment, ssh and/or gpg agent, session dbus
> (not on my box ;-) that kind of thing -- it used to "do" desktop
> environments last time I looked, but that's a while ago)
> 
> So far I agree with you :-)
> 
> As part of that, it "typically" (that is configurable!) it looks
> whether there is a user session RC (typically -- also configurable!)
> called ~/.xsessionrc and *sources* it, as part of the session start
> up process. The "sourcing" part is important, otherwise you couldn't
> set environment variables which get inherited by all your session's
> processes.
> 
> See man (5) Xsession and poke a bit through the scripts in
> /etc/X11/Xsession.d/, then have a look at /etc/X11/Xsession.options,
> then at /etc/X11/Xsession.

I don't see any contradiction to what I've said. Note that I haven't
mentioned .xsessionrc at all, only .xinitrc, which is a different
thing.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Whats the alternative to .xinitrc Bob Brewer <granturav8@gmail.com> - 2017-02-18 19:20 +0100
  Re: Whats the alternative to .xinitrc <tomas@tuxteam.de> - 2017-02-18 21:30 +0100
  Re: Whats the alternative to .xinitrc Brian <ad44@cityscape.co.uk> - 2017-02-18 22:10 +0100
    Re: Whats the alternative to .xinitrc Vincent Lefevre <vincent@vinc17.net> - 2017-02-19 11:10 +0100
      Re: Whats the alternative to .xinitrc Brian <ad44@cityscape.co.uk> - 2017-02-19 21:00 +0100
        Re: Whats the alternative to .xinitrc Vincent Lefevre <vincent@vinc17.net> - 2017-02-20 12:10 +0100
          Re: Whats the alternative to .xinitrc <tomas@tuxteam.de> - 2017-02-20 12:50 +0100
            Re: Whats the alternative to .xinitrc <tomas@tuxteam.de> - 2017-02-20 13:40 +0100
              Re: Whats the alternative to .xinitrc Greg Wooledge <wooledg@eeg.ccf.org> - 2017-02-20 14:40 +0100
                Re: Whats the alternative to .xinitrc Rob Brewer <ipcop-user@grantura.co.uk> - 2017-02-20 15:10 +0100
                Re: Whats the alternative to .xinitrc Vincent Lefevre <vincent@vinc17.net> - 2017-02-20 16:20 +0100
              Re: Whats the alternative to .xinitrc Rob Brewer <ipcop-user@grantura.co.uk> - 2017-02-20 14:40 +0100
                Re: Whats the alternative to .xinitrc <tomas@tuxteam.de> - 2017-02-20 15:00 +0100
            Re: Whats the alternative to .xinitrc Vincent Lefevre <vincent@vinc17.net> - 2017-02-20 13:40 +0100
              Re: Whats the alternative to .xinitrc Greg Wooledge <wooledg@eeg.ccf.org> - 2017-02-20 14:30 +0100
                Re: Whats the alternative to .xinitrc Vincent Lefevre <vincent@vinc17.net> - 2017-02-20 16:10 +0100
                Re: Whats the alternative to .xinitrc Greg Wooledge <wooledg@eeg.ccf.org> - 2017-02-20 16:20 +0100
                Re: Whats the alternative to .xinitrc Vincent Lefevre <vincent@vinc17.net> - 2017-02-20 16:40 +0100
                Re: Whats the alternative to .xinitrc Vincent Lefevre <vincent@vinc17.net> - 2017-02-20 16:50 +0100

csiph-web