I attach the whole file as i'm not sure about the best way to do the patch. This file was made using gnome-session 2.16.1 from Edgy. ** Attachment added: "Fix" http://librarian.launchpad.net/5353114/logout.c -- disabling lock screen does not work https://launchpad.net/bugs/50761