On Sun, 16 Aug 2015 00:07:38 -0500 rlhar...@oplink.net wrote: > On Sat, August 15, 2015 11:29 pm, to...@tuxteam.de wrote: > > On Sun, Aug 16, 2015 at 12:04:17PM +0800, Bret Busby wrote: > >> On 15/08/2015, Carl Johnson <ca...@peak.org> wrote: > ... > >> How do I modify the login script? I do not know the file name or path, > >> for the login script. > > I am asking the same question Bret is asking; my system is Jessie with xfce. > > It appears that the bash startup script is ".bashrc". I read the man > pages for XINIT, Xsession, and XMODMAP, and I read the > www.debian-administration.org article "Running applications automatically > when X starts" (which article has specifics for KDE and GNOME), and now I > am more confused than before. >
xfce has it's own mechanism to manage things at start up. applications menu -> settings -> session and startup in fact i have a "start up" application to swap capslock and control, although it's really just a one-line command. /usr/bin/setxkbmap -option ctrl:swapcaps i've set it up in the "application autostart" tab. the bash start-up is .bashrc but that's a script run when you enter a shell and bash, the shell program, starts-up, and so has absolutely nothing to do with X. there is, in fact, a way to get the "X environment" to run commands at start, that's how the environment does things like start the login application, e.g. gdm and related, but i can't remember how to do that. for the longest time i simply started x through .xsession which makes running things at start up trivial. just put it in .xsession. i started using xfce, like it pretty well - so i've just been using xfce's mechanism. every once in a while i'm tempted to go back to .xsession with openbox and fbpanel but i digress... Brian here's an example of the .xsession i've used in the past which might be of use. setxkbmap us -variant dvorak setxkbmap -option ctrl:swapcaps xset m 1 1 # at some point this wasn't happening automagically, it may be now xrdb -merge .Xresources # set background image feh --bg-fill /home/shared/pictures/astronomy/1999-25-a.jpg openbox & wmpid=$! #xmonad & wmpid=$! emacs -geometry 80x50 & #rxvt --geometry 80x60 & lxterminal --geometry=80x50 & claws-mail & fbpanel & wait $wmpid