 	public static let AutoEmoji = "Parrot.AutoEmoji"
 	public static let MessageTextSize = "Parrot.MessageTextSize"
 	public static let Emoticons = "Parrot.Emoticons"
-	public static let Completions = "Parrot.Completions"
+    public static let Completions = "Parrot.Completions"
+    public static let MenuBarIcon = "Parrot.MenuBarIcon"
 	
 	public static let VibrateForceTouch = "Parrot.VibrateForceTouch"
 	public static let VibrateInterval = "Parrot.VibrateInterval"

                }
            }
        }
    }
    let net = NetworkReachabilityManager(host: "google.com")
    
    /// If the Conversations window is closed, tapping the dock icon will reopen it.
    public func applicationShouldHandleReopen(_ sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool {

            let c = Client(configuration: $0)
			//AppActivity.end("Authenticate")
			
            _ = subscribe(source: c, Client.didConnectNotification) { _ in
                UserNotification(identifier: "Parrot.ConnectionStatus", title: "Parrot has connected.",
                                 contentImage: NSImage(named: NSImageNameCaution)).post()
                
                //AppActivity.start("Setup")
                if c.conversationList == nil {
                    c.buildUserConversationList {
                        // When reconnecting, buildUserConversationList causes Client to then
                        // re-create the entire userlist + conversationlist and reset it
                        // but the old ones are still alive, and their delegate is set to the
                        // conversations window; that means you'll receive double notifications.
                        
                        // TODO: FIXME: THIS IS A TERRIBLE DIRTY DISGUSTING HAX, DON'T DO ITS!
                        NotificationCenter.default.post(name: ServiceRegistry.didAddService, object: c)
                        //AppActivity.end("Setup")
                    }
                }
                
			}
            _ = subscribe(source: c, Client.didDisconnectNotification) { _ in
                UserNotification(identifier: "Parrot.ConnectionStatus", title: "Parrot has disconnected.",
                                 contentImage: NSImage(named: NSImageNameCaution)).post()
            }
            
            ServiceRegistry.add(service: c)
