def _get_status(self):
     if is_server_dbus_running():
         return constants.MANAGER_STATUS_SERVER
     elif is_client_dbus_running():
         return constants.MANAGER_STATUS_CLIENT
     else:
         return constants.MANAGER_STATUS_UNINITIALIZED
 def _get_status(self):
     if is_server_dbus_running():
         return constants.MANAGER_STATUS_SERVER
     elif is_client_dbus_running():
         return constants.MANAGER_STATUS_CLIENT
     else:
         return constants.MANAGER_STATUS_UNINITIALIZED
def main():
    if is_client_dbus_running():
        client_log.warn('[client] client side is running')
        return
#    if is_server_dbus_running():
#        client_log.warn('[client] server side is running')
#        return
    app = QtWidgets.QApplication(sys.argv)
    app.setApplicationName(_(APP_NAME))

    client_dbus = ClientDBus()
    # FIXME: log service failed to dump log
    client_log.debug('Init client dbus: %s' % client_dbus)

    app.exec()
def main():
    if is_client_dbus_running():
        client_log.warn('[client] client side is running')
        return


#    if is_server_dbus_running():
#        client_log.warn('[client] server side is running')
#        return
    app = QtWidgets.QApplication(sys.argv)
    app.setApplicationName(_(APP_NAME))

    client_dbus = ClientDBus()
    # FIXME: log service failed to dump log
    client_log.debug('Init client dbus: %s' % client_dbus)

    app.exec()