Comment 13 for bug 141160

Revision history for this message
Giorgio Vazzana (mywing) wrote :

I think vino-session should be disabled, here's why:

1)
> This happens because vino on Ubuntu (which was merged from debian)
> is compiled with --enable-session. Without that flag, the process
> responsible for start/stop the deamon is gnome-session.

> So, there are two ways:
> 1) patch gnome-session to watch that key and run vino-server when the key is true.
> 2) deploy its own 'watcher', called vino-session, by passing --enable-session to configure.

Please read here:

http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/2007-July/036018.html

I think we don't need vino-session because gnome-session is _already_ patched to watch the GConf key. To see that do the following:
a) disable vino-session (see below)
b) start gconf-editor and set /desktop/gnome/remote_access/enabled as true
c) result: you'll see that vino-server has been started (ps -e w | grep vino)
d) now set /desktop/gnome/remote_access/enabled as false
e) wait some seconds
f) result: you'll see that vino-server has been killed
g) another proof: if you kill vino-server (killall vino-server) you'll see that in the file .xsession-errors appears the following line: "Session manager: gsm-remote-desktop.c:107: remote desktop server died, restarting", and the file gsm-remote-desktop.c belongs to the gnome-session package.

2)
In the file /usr/share/gnome/default.session vino-session has Priority=50, but for some reason gnome-session-properties reports a priority of 05, and I haven't been able to change this priority, so I think this is a bug.

3)
If I use vino-session and remote desktop is enabled, when I log out from gnome and then I log in again, gnome hangs and I can only see the brown background, but no panels or icons. File .xsession-errors reports:
1198440598.912730 Session manager: gsm-remote-desktop.c:107: remote desktop server died, restarting
1198440598.916107 Session manager: gsm-remote-desktop.c:107: remote desktop server died, restarting
1198440608.837906 Session manager: gsm-remote-desktop.c:130: activation of OAFIID:GNOME_RemoteDesktopServer failed: System exception: IDL:omg.org/CORBA/COMM_FAILURE:1.0

How to disable vino-session: open /usr/share/gnome/default.session then 1) change the value of num_clients from 6 to 5 2) comment the three lines starting with 5. Your default.session should look like mine (see attachment). Now log out and log back in again.
John, Sebastien, please let me know what you think. Thanks.