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



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.

Thanks.

Rocky





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