auto start program

Charlie Kravetz cjk at teamcharliesangels.com
Wed Oct 10 14:02:30 UTC 2007


On Wed, 2007-10-10 at 01:01 +1000, Peter Garrett wrote:
> On Tue, Oct 09, 2007 at 10:32:26AM -0300, Derek Broughton wrote:
> > Andrew Glen-Young wrote:
> > 
> > > On 09/10/2007, August <tan.august at gmail.com> wrote:
> > >> add commands/programs in ~/.bashrc to start when user log in system
> > > 
> > > My apologies, I missed the start of this thread. I would like to
> > > comment that using '~/.bashrc' will run the command whenever the
> > > user's bash shell is run. If you want to run the command only once per
> > > session then you should probably use '~/.bash_profile' instead (or
> > > more accurately - when a login shell is run).
> > 
> > or ~/.xsession (once per X session), or KDE has a per-user Autostart folder
> > and I would have thought Gnome would too.
> 
> The equivalent to KDE's Autostart directory is a file, in GNOME - viz.
> 
> ~/.gnomerc
> 
> You can put commands in that file -  I use it to start the synergy
> server/client setup I use to mouse from one machine's screen to another on the 
> network ( desktop <-> laptop , for example).
> 
> For fluxbox I use ~/.xsession as you say - but this only works if you either choose
> the "default session" option in GDM or set up your own fluxbox.desktop file in
> /usr/share/xsessions/  ( I do the latter )
> 
> For GUI apps with GNOME, it is easier to simply save the session, assuming 
> the app concerned understands GNOME's session management. 
> 
> Peter
> 
Am I right that any of these are set per user? By placing commands
in /etc/gdm/PostLogin/Default for GNOME, the command is run at login for
any user logging in to the system. Seems like this will save some work
on multi-user systems?


-- 
Charlie Kravetz
http://keepingdreams.com
Linux Registered User Number 425914
Never let anyone steal your DREAM





More information about the ubuntu-users mailing list