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



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.

How can I fix it? Or is there any other way to add program to gnome
session startup?

Thanks.

Rocky






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