def startReadOnlyEmbeddedDB(_isNoAlertIfSuccessfully=True): global isReadOnlyStarted if isReadOnlyStarted: return True if uni.checkMysqldSafe(): Execute.executeWithThread( [uni.MySettings["pathOfMysqldSafe"], "--defaults-file=" + fu.pathOfSettingsDirectory + "/Amarok/my.cnf"]) Dialogs.sleep(translate("EmbeddedDBCore", "Starting Embedded Server..."), 3) if _isNoAlertIfSuccessfully is False: Dialogs.show(translate("EmbeddedDBCore", "Started Embedded Server"), translate("EmbeddedDBCore", "Embedded Amarok database server started.")) isReadOnlyStarted = True return True isReadOnlyStarted = False return False
def startEmbeddedDB(_isNoAlertIfSuccessfully=True): global isStarted if isStarted: return True if uni.checkMysqldSafe(): Execute.executeWithThread([uni.MySettings["pathOfMysqldSafe"], "--defaults-file=" + uni.getKDE4HomePath() + "/share/apps/amarok/mysqle/my.cnf"]) Dialogs.sleep(translate("EmbeddedDBCore", "Starting Embedded Server..."), 3) if _isNoAlertIfSuccessfully is False: Dialogs.show(translate("EmbeddedDBCore", "Started Embedded Server"), translate("EmbeddedDBCore", "Embedded Amarok database server started.")) isStarted = True return True isStarted = False return False
def startReadOnlyEmbeddedDB(_isNoAlertIfSuccessfully=True): global isReadOnlyStarted if isReadOnlyStarted: return True if uni.checkMysqldSafe(): Execute.executeWithThread([ uni.MySettings["pathOfMysqldSafe"], "--defaults-file=" + fu.pathOfSettingsDirectory + "/Amarok/my.cnf" ]) Dialogs.sleep( translate("EmbeddedDBCore", "Starting Embedded Server..."), 3) if _isNoAlertIfSuccessfully is False: Dialogs.show( translate("EmbeddedDBCore", "Started Embedded Server"), translate("EmbeddedDBCore", "Embedded Amarok database server started.")) isReadOnlyStarted = True return True isReadOnlyStarted = False return False
def startEmbeddedDB(_isNoAlertIfSuccessfully=True): global isStarted if isStarted: return True if uni.checkMysqldSafe(): Execute.executeWithThread([ uni.MySettings["pathOfMysqldSafe"], "--defaults-file=" + uni.getKDE4HomePath() + "/share/apps/amarok/mysqle/my.cnf" ]) Dialogs.sleep( translate("EmbeddedDBCore", "Starting Embedded Server..."), 3) if _isNoAlertIfSuccessfully is False: Dialogs.show( translate("EmbeddedDBCore", "Started Embedded Server"), translate("EmbeddedDBCore", "Embedded Amarok database server started.")) isStarted = True return True isStarted = False return False