Re: [Fwd: Re: How can I add my startup programs to gnome session system wide?]



Thanks. I already knew it. My question is that how I can modify gnome
session system wide (only modify once and it take effect whatever the
user is new user or not  instead of modifying every user's gnome session
properties).

I found I can modify /usr/share/gnome/default.session, and add the
following lines there (modify "num_clients" first):
"7, RestartStyleHint=3
 7, Priority=50
 7, RestartCommand=/opt/mytestapp/mytest.sh"

It seems works except sometime it seems cause gnome config error when
one start a normal session.

Rocky

On Tue, 2005-01-04 at 11:55, Manuel Amador wrote:
> Either start the program and save your session upon logout, or if the
> program does not have session management support, use gnome-session-
> properties to add a startup program.
> 
> El lun, 03-01-2005 a las 09:45 -0700, Rocky Zhang escribi� > Hi Guys,
> > 
> > Any other idea to add my startup programs to gnome session? I am stuck
> > here for nearly a week. I tried to modify /etc/bashrc, but it is
> > executed even when some one use "ssh" or "su -" command which is not
> > expected. I only want it to be executed when gnome session startup.
> > Another thing, I tried to add "[Chooser]" section in gnome session
> > config file (/usr/share/gnome/default.session); but it seems not work.
> > Does any one know anything about it ( I saw the instruction in "man
> > default.session" command , but not quite understand ) ?
> > 
> > Thanks.
> > 
> > Rocky
> > email message adjunto, "Forwarded message - Re: How can I add my
> > startup programs to gnome session system wide?"
> > El lun, 03-01-2005 a las 09:45 -0700, Rocky Zhang escribi� > > On Tue, 2004-12-07 at 11:27, Rocky Zhang wrote:
> > > > On Tue, 2004-12-07 at 11:07, Andrei Badea wrote:
> > > > > Rocky Zhang wrote:
> > > > > 
> > > > > > Hi,
> > > > > > 
> > > > > > I'm now using Fedora Core 2 (Kernel 2.6.8-1.521, Gnome 2.6.0). I'd like 
> > > > > > to add my startup programs to gnome-session system wide ( take effect
> > > > > > for every gnome session whatever which user log in ). I know I can use
> > > > > > "gnome-session-properties" to add startup programs for each user. Is
> > > > > > there any way to realize it by NOT using gnome-session-properties for
> > > > > > every user?
> > > > > > 
> > > > > > Some guys told me I can modify /usr/share/gnome/default.session to add
> > > > > > my startup program. Here is my modified file:
> > > > > > 
> > > > > > [Default]
> > > > > > num_clients=8
> > > > > > ...
> > > > > > ...
> > > > > > 7,id=default7
> > > > > > 7,Priority=70
> > > > > > 7,RestartCommand=mytest.sh --sm-client-id default7
> > > > > > 
> > > > > > After I logout and relog in, it seems mytest.sh was executed. But it
> > > > > > cause new problems: 1) The splash screen does not disappear till one
> > > > > > click mouse on it; 2) When I log out, it take long time to display
> > > > > > logout dialog. I remember I asked some guys before, they said it's one
> > > > > > of gnome 2.6 bugs, and it should be fixed in gnome 2.8. Yesterday I
> > > > > > installed Fedora Core 3 (Kernel 2.6.9-1.667, Gnome 2.8.0), same problems
> > > > > > happened.
> > > > > 
> > > > > Problem 1) might be fixed by running gnome-session with a --purge-delay 
> > > > > parameter, such as:
> > > > > 
> > > > > gnome-session --purge-delay 3000
> > > > > 
> > > > > On my Debian system gnome-session is run from an Exec=gnome-session line 
> > > > > in /usr/share/xsession/gnome.desktop. If you use GDM, you will probably 
> > > > > find it there too
> > > > 
> > > > Yes. I found it there. I modified the line as you mentioned above, it
> > > > still take nearly 1 minute for the splash to disappear (normally it
> > > > should be several seconds), and it seems fix the problem 2), it display
> > > > logout dialog vary quickly.
> > > > 
> > > 
> > > Any idea to modify gnome session config and make splash screen disappear
> > > quickly?
> > > 
> > > Thanks.
> > _______________________________________________
> > gnome-list mailing list
> > gnome-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gnome-list





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