Re: [K12OSN] How do I automatically run an app at login???????

Tonnesen Steve (tonnesen@cmsd.bc.ca)
Mon, 11 Mar 2002 13:35:07 -0800 (PST)



On Tue, 12 Mar 2002, Bert Rolston wrote:

> The Atari STe had and auto folder, DOS used a batch file, MS Windoze used a startup folder (or registry hack).
> 
> How do I go about getting an application to run automatically once I have logged into X?
> 
> I've checked at several website, about half a dozen PDFs and can't find anything on this.


You could try creating a file called .xsession in your home directory.

This file is just a shell script and you can run something like this:


--------------------
# .xsession file
xterm &
netscape &
xsetroot -solid blue
icewm
--------------------


Note that the last program that is run should be the window manager that
you want to use, and the other programs should have an & after them so
they go in the background and allow the script to carry on starting up
other programs.  xsetroot doesn't need the & as it exits immediately
anyway.

Steve.




_______________________________________________
K12OSN mailing list
K12OSN@redhat.com
https://listman.redhat.com/mailman/listinfo/k12osn
For more info see