[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: startx vs. xdm



On Sat, Jul 28, 2012 at 10:52:58AM -0600, Javier Vasquez wrote:
> > I use startx, and only have an .xsessionrc file. I know it is read
> > because of the xterm settings.
> 
> Resources, whether for xterm, urxvt, or similar, usually are not
> configured into .xinitrc, neither .xsession (I never used
> .xsessionrc).  Instead they are specified in .Xresources and
> .Xdefaults.  However it might be you "xrdb" them from .xsessionrc,
> though .Xdefaults the old days was supposed to beloaded automatically
> without being loaded through xrdb.

A quick search in google:

http://knoppix.net/forum/threads/28595-Create-.xsessionrc-for-quick-session-changes
Although it says .xsessionrc is read by .xsession, yet I have no
.xsession file.

http://ubuntuforums.org/archive/index.php/t-1130521.html


But from here:
root@tal:~# file /usr/bin/startx
/usr/bin/startx: POSIX shell script, ASCII text executable

which points to (if you have no $HOME/.xinitrc):

/etc/X11/xinit/xinitrc
# global xinitrc file, used by all X sessions started by xinit (startx)

which sources:

/etc/X11/Xsession

which .... AHAH!
[...]
SYSRESOURCES=/etc/X11/Xresources
USRRESOURCES=$HOME/.Xresources

SYSSESSIONDIR=/etc/X11/Xsession.d
USERXSESSION=$HOME/.xsession
USERXSESSIONRC=$HOME/.xsessionrc
ALTUSERXSESSION=$HOME/.Xsession
ERRFILE=$HOME/.xsession-errors
[...]
# use run-parts to source every file in the session directory; we source
# instead of executing so that the variables and functions defined above
# are available to the scripts, and so that they can pass variables to
# each
# other
SESSIONFILES=$(run-parts --list $SYSSESSIONDIR)
if [ -n "$SESSIONFILES" ]; then
  set +e
    for SESSIONFILE in $SESSIONFILES; do
     . $SESSIONFILE
    done
    set -e
fi

etc, etc, etc,

-- 
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing." --- Malcolm X


Reply to: