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

Re: xsession file



.xsession is a file which to my knowledge can only take one command
at the end. The file must is not 'shelled' but 'exec'ed. 
So you can place commands in the file one per line or a script
but the end of the file must be an exec and not a script/command that
returns.

Or in other words, the .xsession file can be placed in your home
directory which will be souced and commands executed from the file and
the X session lasts until the .xsession file completes and returns (the
last command returns )

X session will also last till all the clients connected to the X session
terminates. 

eg:-
 If you place this command
 sleep 20

 then the X session will last for 20 seconds and after 20 seconds when
the sleep command exits, the X window will close. 

On Fri, 2007-07-20 at 20:06 -0500, Ron Johnson wrote: 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 07/20/07 19:47, Nguyen, Cuong K. wrote:
> > Hi all,
> > 
> > I have Debian Etch 4.0 and it is quite new to me. I want to customize
> > some scripts starting with Gnome every time when I boot up and log in,
> > and the method chosen is to use ~/.xsession file. The problem is I do
> > not see that file in my home folder. I need to create one, but then I do
> > not know what is the "official" command(s) to pass off the process to
> > gnome whenever the script is implement. Tried gdm, xdm, /etc/init.d/gdm,
> > startx etc... with no luck. Everybody has an idea?
> 
> Why not use sessions?
> 
> - --
> Ron Johnson, Jr.
> Jefferson LA  USA
> 
> Give a man a fish, and he eats for a day.
> Hit him with a fish, and he goes away for good!
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> 
> iD8DBQFGoVwlS9HxQb37XmcRAqgJAJ42Qy/pjk2xfuqne0LItHtc7F9O2ACgivVM
> B6k4SPnTvKYC8tJL6yJfSEk=
> =v3W5
> -----END PGP SIGNATURE-----
> 
> 
-- 
Bhasker C V
Registered Linux user: #306349 (counter.li.org)
The box said "Requires Windows 95, NT, or better", so I installed Linux.



Reply to: