void openDebugLogfile() { boost::filesystem::path pathDebug = GetDataDir() / "debug.log"; /* Open debug.log with the associated application */ if (boost::filesystem::exists(pathDebug)) QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathDebug))); }
void showBackups() { boost::filesystem::path pathBackups = GetDataDir() / "backups"; /* Open folder with default browser */ if (boost::filesystem::exists(pathBackups)) QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathBackups))); }
void showBackups() { boost::filesystem::path backupsDir = GetBackupsDir(); /* Open folder with default browser */ if (boost::filesystem::exists(backupsDir)) QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(backupsDir))); }
void openConfigfile() { boost::filesystem::path pathConfig = GetConfigFile(); /* Open dash.conf with the associated application */ if (boost::filesystem::exists(pathConfig)) QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathConfig))); }
bool openMachinecoinConf() { boost::filesystem::path pathConfig = GetConfigFile(gArgs.GetArg("-conf", MACHINECOIN_CONF_FILENAME)); /* Create the file */ boost::filesystem::ofstream configFile(pathConfig, std::ios_base::app); if (!configFile.good()) return false; configFile.close(); /* Open machinecoin.conf with the associated application */ return QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathConfig))); }