diff --git a/src/ksimplenm.cpp b/src/ksimplenm.cpp index aec22811..c7fea7cf 100644 --- a/src/ksimplenm.cpp +++ b/src/ksimplenm.cpp @@ -57,7 +57,12 @@ void KSimpleNM::execGetLanList() isExecutingGetLanList = true; shellOutputLan = ""; - runProcessLan->start("nmcli -f type,uuid,name connection show"); + QString getCmd = "export LANG='en_US.UTF-8';export LANGUAGE='en_US';nmcli -f type,uuid,name connection show"; + QStringList options; + options << "-c" << getCmd; + runProcessLan->start("/bin/bash",options); + + //runProcessLan->start("nmcli -f type,uuid,name connection show"); } //获取无线网络列表数据 diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 2f8c59e7..16ae2259 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1336,6 +1336,12 @@ void MainWindow::on_btnWifiList_clicked() // 获取lan列表回调 void MainWindow::getLanListDone(QStringList slist) { + qDebug()<<"0 "; + foreach (QString str, slist) { + qDebug()<is_btnWifiList_clicked == 1) { return; }