Clarification about creating .xinitrc file for xfce

Polytropon freebsd at edvax.de
Mon Sep 23 19:19:23 UTC 2019


On Mon, 23 Sep 2019 18:19:48 +0530, Mrityunjoy Ghosh wrote:
> Section 5.7.3 for creating .initrc and  .xsession file for xfce  written as
> given below. My question is what is the need of dot after inverted commas
> (i.e.    ".   /usr    )? What will happen if it is done this way?
> 
> % echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xinitrc
> 
> % echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xsession

The sh shell command ". <filename>" inputs the specified file
at the current position. You can find a typical use at the top
of /etc/rc.bsdextended or at the end of /etc/defaults/rc.conf
where external files are included.

The C shell's equivalent it "source <filename>".

See "man sh" for details.

Note: File .xinitrc is used by startx, .xsession is used by display
managers such as xdm or slim. Both are ignored by gdm. ;-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list