Skip to content

Commit

Permalink
Changing QProcess command to get Wombat assigned name
Browse files Browse the repository at this point in the history
  • Loading branch information
erinharrington-12 committed Oct 1, 2024
1 parent 306db57 commit e0478e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NetworkSettingsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e0478e3

Please sign in to comment.