diff --git a/src/AboutWidget.cpp b/src/AboutWidget.cpp index 326b52f0..d12c74ed 100644 --- a/src/AboutWidget.cpp +++ b/src/AboutWidget.cpp @@ -95,7 +95,7 @@ AboutWidget::~AboutWidget() void AboutWidget::getEventModeState() { QProcess eventModeProcess; - QString command = "grep '^EVENT_MODE' /home/kipr/Documents/wifiConnectionMode.txt | awk '{print $2}'"; + QString command = "grep '^EVENT_MODE' /home/kipr/wifiConnectionMode.txt | awk '{print $2}'"; eventModeProcess.start("bash", QStringList() << "-c" << command); eventModeProcess.waitForFinished(); @@ -123,7 +123,7 @@ void AboutWidget::getEventModeState() void AboutWidget::setEventModeState(QString newState) { QProcess process; - QString command = QString("sed -i 's/^EVENT_MODE.*/EVENT_MODE %1/' /home/kipr/Documents/wifiConnectionMode.txt").arg(newState); + QString command = QString("sed -i 's/^EVENT_MODE.*/EVENT_MODE %1/' /home/kipr/wifiConnectionMode.txt").arg(newState); process.start("bash", QStringList() << "-c" << command); process.waitForFinished(); diff --git a/src/NetworkManager.cpp b/src/NetworkManager.cpp index 28472293..398ad323 100644 --- a/src/NetworkManager.cpp +++ b/src/NetworkManager.cpp @@ -541,7 +541,7 @@ QString NetworkManager::ipAddress() const bool NetworkManager::eventModeState() { QProcess eventModeProcess; - QString command = "grep '^EVENT_MODE' /home/kipr/Documents/wifiConnectionMode.txt | awk '{print $2}'"; + QString command = "grep '^EVENT_MODE' /home/kipr/wifiConnectionMode.txt | awk '{print $2}'"; eventModeProcess.start("bash", QStringList() << "-c" << command); eventModeProcess.waitForFinished(); diff --git a/src/NetworkSettingsWidget.cpp b/src/NetworkSettingsWidget.cpp index b1cfe273..40fdc4b1 100644 --- a/src/NetworkSettingsWidget.cpp +++ b/src/NetworkSettingsWidget.cpp @@ -130,7 +130,7 @@ void NetworkSettingsWidget::eventModeDisabledState() void NetworkSettingsWidget::getCurrentMode() { QProcess modeProcess; - QString command = "grep '^MODE' /home/kipr/Documents/wifiConnectionMode.txt | awk '{print $2}'"; + QString command = "grep '^MODE' /home/kipr/wifiConnectionMode.txt | awk '{print $2}'"; modeProcess.start("bash", QStringList() << "-c" << command); modeProcess.waitForFinished(); @@ -329,7 +329,7 @@ void NetworkSettingsWidget::rebootBox() void NetworkSettingsWidget::editWifiConnectionMode(int newMode) { QProcess process; - QString command = QString("sed -i 's/^MODE.*/MODE %1/' /home/kipr/Documents/wifiConnectionMode.txt").arg(newMode); + QString command = QString("sed -i 's/^MODE.*/MODE %1/' /home/kipr/wifiConnectionMode.txt").arg(newMode); process.start("bash", QStringList() << "-c" << command); process.waitForFinished(); diff --git a/src/StandardWidget.cpp b/src/StandardWidget.cpp index d8987627..4061faef 100644 --- a/src/StandardWidget.cpp +++ b/src/StandardWidget.cpp @@ -30,7 +30,7 @@ void StandardWidget::disableMenuBar() bool StandardWidget::getEventModeStateDefault() { QProcess eventModeProcess; - QString command = "grep '^EVENT_MODE' /home/kipr/Documents/wifiConnectionMode.txt | awk '{print $2}'"; + QString command = "grep '^EVENT_MODE' /home/kipr/wifiConnectionMode.txt | awk '{print $2}'"; eventModeProcess.start("bash", QStringList() << "-c" << command); eventModeProcess.waitForFinished();