GNOME Bugzilla – Bug 546747
program won't restart even set X-GNOME-AutoRestart=true
Last modified: 2008-09-01 16:04:02 UTC
I'm using new gnome-session 2.23.6. Take vino for example: With bug #544650 fixed, there is a vino-server.desktop file in /usr/share/gnome/autostart. How to reproduce 1) Start vino-preferences to enable vino 2) Use 'ps -ef|grep vino-server' to confirm vino-server is running 3) pkill vino-server 4) Wait for a while, use 'ps -ef|grep vino-server' to check whether vino-server is running Expected result: vino-server can restart after a while Actual result: vino-server does not restart
Created attachment 116041 [details] [review] autostart desktop file for vino-server If you do not have bug #544650 included, put vino-server.desktop under /usr/share/gnome/autostart is alos okay.
Looks like you have a hyphen where it should not be. Try the following instead: AutostartCondition=GNOME /desktop/gnome/remote_access/enabled Does that work?
Hi, William. It works in the sense it will start vino-server at login time. But it still doesn't restart vino-server if I kill it.
William, I got same result with John. I checked in gnome-session code, it really lookups AutostartCondition instead of Autostart-Condition. This is inconsistent on document http://lists.freedesktop.org/archives/xdg/2007-January/007436.html. Anyway, i'm going to change vino-server.desktop.in.in to use AutostartCondition.
AutostartCondition is correct. I've confirmed this with Dan.
Hi, Jon. I didn't understand why this bug was closed. We are using AutostartCondition=true and vino-server is not being restarted if it crashes (or I kill it).
vino must become a client of the session manager for this key to have any effect.
Created attachment 117588 [details] [review] Make vino a gnome-session client With this patch I: - dropped the bonobo stuff. Now gnome-session is responsible for [re]start/stop vino. - made vino-server a gnome-session client - made obsolete the directory "session/". (the configure option "--enable-session-support" doesn't exist anymore
I have tested this patch against gnome-session 2.23.90 and it worked fine, as expected, starting, stopping and restarting vino-server correctly. I would like to commit this patch in time to 2.23.91, which is next Monday. Mark, any comments?
okay, no comments so far, I just committed it to trunk. Will be available in 2.23.91.