How to run .profile, etc

Chris Green cl at isbd.net
Fri May 22 16:17:52 CEST 2020


On Fri, May 22, 2020 at 08:59:05AM -0500, Robby Workman wrote:
> On Thu, 21 May 2020 10:16:16 -0700
> Joe Riel <joer at san.rr.com> wrote:
> 
> > When xfce4 starts (I use a graphical login), 
> > how does one get it to run $HOME/.profile or something equivalent?
> 
> Sounds like you want $HOME/.xprofile instead; xdm's Xsession 
> uses it, but no idea if other login managers do...
> 
The only extra that .xprofile gives you is that it is run *only*
before a X session, not (like .profile) every time you log in.

So .profile gets run before the X session *and* before a non-X session
(e.g. when you do something like connecting using ssh or use one of
the console logins), .xprofile is only run for an X session.

-- 
Chris Green


More information about the Xfce mailing list