Skip to content

Commit

Permalink
Changing file path for Event Mode/Wifi Connection Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
erinharrington-12 committed Oct 10, 2024
1 parent 85664aa commit 0df96e6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/AboutWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ AboutWidget::~AboutWidget()
bool AboutWidget::getEventModeState()
{
QProcess eventModeProcess;
QString command = "grep '^EVENT_MODE' /home/kipr/wifiConnectionMode.txt | awk '{print $2}'";
QString command = "grep '^EVENT_MODE' /home/kipr/wombat-os/wifiConnectionMode.txt | awk '{print $2}'";

eventModeProcess.start("bash", QStringList() << "-c" << command);
eventModeProcess.waitForFinished();
Expand Down Expand Up @@ -129,7 +129,7 @@ bool AboutWidget::getEventModeState()
void AboutWidget::setEventModeState(QString newState)
{
QProcess process;
QString command = QString("sed -i 's/^EVENT_MODE.*/EVENT_MODE %1/' /home/kipr/wifiConnectionMode.txt").arg(newState);
QString command = QString("sed -i 's/^EVENT_MODE.*/EVENT_MODE %1/' /home/kipr/wombat-os/wifiConnectionMode.txt").arg(newState);

process.start("bash", QStringList() << "-c" << command);
process.waitForFinished();
Expand Down
2 changes: 1 addition & 1 deletion src/NetworkManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ QString NetworkManager::ipAddress() const
bool NetworkManager::eventModeState()
{
QProcess eventModeProcess;
QString command = "grep '^EVENT_MODE' /home/kipr/wifiConnectionMode.txt | awk '{print $2}'";
QString command = "grep '^EVENT_MODE' /home/kipr/wombat-os/wifiConnectionMode.txt | awk '{print $2}'";

eventModeProcess.start("bash", QStringList() << "-c" << command);
eventModeProcess.waitForFinished();
Expand Down
4 changes: 2 additions & 2 deletions src/NetworkSettingsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void NetworkSettingsWidget::eventModeDisabledState()
void NetworkSettingsWidget::getCurrentMode()
{
QProcess modeProcess;
QString command = "grep '^MODE' /home/kipr/wifiConnectionMode.txt | awk '{print $2}'";
QString command = "grep '^MODE' /home/kipr/wombat-os/wifiConnectionMode.txt | awk '{print $2}'";

modeProcess.start("bash", QStringList() << "-c" << command);
modeProcess.waitForFinished();
Expand Down Expand Up @@ -335,7 +335,7 @@ void NetworkSettingsWidget::rebootBox()
void NetworkSettingsWidget::editWifiConnectionMode(int newMode)
{
QProcess process;
QString command = QString("sed -i 's/^MODE.*/MODE %1/' /home/kipr/wifiConnectionMode.txt").arg(newMode);
QString command = QString("sed -i 's/^MODE.*/MODE %1/' /home/kipr/wombat-os/wifiConnectionMode.txt").arg(newMode);

process.start("bash", QStringList() << "-c" << command);
process.waitForFinished();
Expand Down
2 changes: 1 addition & 1 deletion src/StandardWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void StandardWidget::disableMenuBar()
bool StandardWidget::getEventModeStateDefault()
{
QProcess eventModeProcess;
QString command = "grep '^EVENT_MODE' /home/kipr/wifiConnectionMode.txt | awk '{print $2}'";
QString command = "grep '^EVENT_MODE' /home/kipr/wombat-os/wifiConnectionMode.txt | awk '{print $2}'";

eventModeProcess.start("bash", QStringList() << "-c" << command);
eventModeProcess.waitForFinished();
Expand Down

0 comments on commit 0df96e6

Please sign in to comment.