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_server_dbus_running():
        print('server dbus is running, ignore')
        return
    server_dbus = ServerDBus()
    # FIXME: log service failed to dump log
    server_log.debug('Init server dbus: %s' % server_dbus)
    print('server dbus inited')
    app = QtCore.QCoreApplication(sys.argv)
    app.exec()
Exemple #4
0
def main():
    if is_server_dbus_running():
        print('server dbus is running, ignore')
        return
    server_dbus = ServerDBus()
    # FIXME: log service failed to dump log
    server_log.debug('Init server dbus: %s' % server_dbus)
    print('server dbus inited')
    app = QtCore.QCoreApplication(sys.argv)
    app.exec()
def main():
    if is_server_dbus_running():
        server_log.warn('[server] server side is running')
        return
#    if is_client_dbus_running():
#        server_log.warn('[server] client side is running')
#        return
    app = QtWidgets.QApplication(sys.argv)
    app.setApplicationName(_(APP_NAME))

    server_dbus = ServerDBus()
    # FIXME: log service failed to dump log
    server_log.debug('Init server dbus: %s' % server_dbus)

    app.exec()
def main():
    if is_server_dbus_running():
        server_log.warn('[server] server side is running')
        return


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

    server_dbus = ServerDBus()
    # FIXME: log service failed to dump log
    server_log.debug('Init server dbus: %s' % server_dbus)

    app.exec()