GNOME Bugzilla – Bug 659867
don't try to replace an existing keyboard
Last modified: 2011-09-23 11:53:31 UTC
Created attachment 197288 [details] [review] keyboard-service: don't try to replace an existing keyboard Under certain circumstances (especially if gnome-shell crashes and is restarted), antler can end up running while gnome-shell is running. In order to make sure that gnome-shell can always reassert its keyboard over antler, this patch to remove the REPLACE flag from antler's D-Bus name registration is useful. (Since antler already specifies ALLOW_REPLACEMENT, gnome-shell could steal control of the keyboard back from it... but you want to ensure that they aren't going to keep fighting back and forth.) There shouldn't be any bad side effects of this; if gnome-shell isn't running, then the REPLACE flag is just a no-op anyway. (I guess it means that if you want to start a new antler, you have to kill the old one first, rather than just starting a new one and having it kill the old one for you...)
Works fine in my testing, together with the corresponding shell patch, and prevents antler from coming up.
Excellent. Please commit.
Attachment 197288 [details] pushed as 16e69bf - keyboard-service: don't try to replace an existing keyboard