[gnome-shell] keyring: Don't replace an already running prompter



commit 805a409318540b40da52c9a2edf3d01669d4d805
Author: Stef Walter <stefw gnome org>
Date:   Sat Mar 9 11:09:46 2013 +0100

    keyring: Don't replace an already running prompter
    
     * Prompters have state, and cancelling an already prompter will
       cause prompts that are in progress to fail.
     * In addition allow replacement of our shell prompter for debugging
       purposes.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=695485

 js/ui/components/keyring.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/components/keyring.js b/js/ui/components/keyring.js
index 34d7b6d..b38888f 100644
--- a/js/ui/components/keyring.js
+++ b/js/ui/components/keyring.js
@@ -222,7 +222,7 @@ const KeyringPrompter = new Lang.Class({
     enable: function() {
         this._prompter.register(Gio.DBus.session);
         this._dbusId = Gio.DBus.session.own_name('org.gnome.keyring.SystemPrompter',
-                                                 Gio.BusNameOwnerFlags.REPLACE, null, null);
+                                                 Gio.BusNameOwnerFlags.ALLOW_REPLACEMENT, null, null);
     },
 
     disable: function() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]