From e0478e308d5e526022ef160dbf1839d7ac0c99b8 Mon Sep 17 00:00:00 2001 From: Erin Date: Tue, 1 Oct 2024 13:00:35 -0500 Subject: [PATCH] Changing QProcess command to get Wombat assigned name --- src/NetworkSettingsWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetworkSettingsWidget.cpp b/src/NetworkSettingsWidget.cpp index 40fdc4b1..d6ddf52d 100644 --- a/src/NetworkSettingsWidget.cpp +++ b/src/NetworkSettingsWidget.cpp @@ -174,7 +174,7 @@ QString NetworkSettingsWidget::getRaspberryPiType() void NetworkSettingsWidget::getWombatName() { QStringList arguments; - arguments << "-c" << "nmcli -t -f NAME connection show --active | grep 'wombat'"; + arguments << "-c" << "nmcli -t -f NAME connection show --active | awk '/-wombat/'"; QProcess *myProcess = new QProcess(this); myProcess->start("/bin/sh", arguments); // Use /bin/sh or /bin/bash to interpret the command