GNOME Bugzilla – Bug 642462
[patch] gnome-screensaver can be running twice
Last modified: 2011-03-06 06:30:55 UTC
Created attachment 180994 [details] [review] make sure gnome-screensaver cannot run twice Because of a race condition, gnome-screensaver can be running more than once. This results in screen being locked again immediately after being unlocked. See downstream bug report: https://bugs.launchpad.net/ubuntu/+source/gnome-screensaver/+bug/556255 This patch corrects the issue by making sure that we bail out if we cannot become the primary owner of the bus name. This patch is against the 2.30 branch, as I have no way to test HEAD. Code is head looks the same though, so it may be needed there also. Thanks!
Nice catch. Pushed to master with one small change. commit 85d22a5d784b2b8201054257f8696138de1e1b70