/** If <b>run</b> is set to true, then Vidalia will run on system boot. */ void VidaliaSettings::setRunVidaliaOnBoot(bool run) { #if defined(Q_WS_WIN) if (run) { win32_registry_set_key_value(STARTUP_REG_KEY, VIDALIA_REG_KEY, QString("\"" + QDir::convertSeparators(QCoreApplication::applicationFilePath())) + "\""); } else { win32_registry_remove_key(STARTUP_REG_KEY, VIDALIA_REG_KEY); } #else /* Platforms othe rthan windows aren't supported yet */ Q_UNUSED(run); return; #endif }
/** If <b>run</b> is set to true, then RetroShare will run on system boot. */ void RshareSettings::setRunRetroshareOnBoot(bool run, bool minimized) { #if defined(Q_WS_WIN) if (run) { QString value = "\"" + QDir::convertSeparators(QCoreApplication::applicationFilePath()) + "\""; if (minimized) { value += " -m"; } win32_registry_set_key_value(STARTUP_REG_KEY, RETROSHARE_REG_KEY, value); } else { win32_registry_remove_key(STARTUP_REG_KEY, RETROSHARE_REG_KEY); } #else /* Platforms othe rthan windows aren't supported yet */ Q_UNUSED(run); Q_UNUSED(minimized); #endif }