diff --git a/debian/control b/debian/control index 2ed69020..a4d9f33b 100644 --- a/debian/control +++ b/debian/control @@ -27,7 +27,6 @@ Depends: network-manager (>=1.2.6), network-manager-config-connectivity-ubuntu, gir1.2-javascriptcoregtk-4.0, gir1.2-webkit2-4.0, - gnome-shell, ${shlibs:Depends}, ${misc:Depends} Description: Gui Applet tool for display and edit network simply diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 4e9113be..def108bd 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -3429,12 +3429,13 @@ void MainWindow::connWifiDone(int connFlag) { // Wifi连接结果,0点击连接成功 1失败 2没有配置文件 3开机启动网络工具时已经连接 4密码错误 5找不到已保存的网络 if (connFlag == 0) { - WifiAuthThread *wifi_auth_thread=new WifiAuthThread(); - wifi_auth_thread->start(); syslog(LOG_DEBUG, "Wi-Fi already connected by clicking button"); if (!isHuaWeiPC) { //如果是华为电脑,使用获取连接信号的方式更新列表 this->ksnm->execGetWifiList(this->wcardname); + } else { + WifiAuthThread *wifi_auth_thread=new WifiAuthThread(); + wifi_auth_thread->start(); } QString txt(tr("Conn Wifi Success")); diff --git a/src/wifi-auth-thread.cpp b/src/wifi-auth-thread.cpp index 6782464e..764e3ff1 100644 --- a/src/wifi-auth-thread.cpp +++ b/src/wifi-auth-thread.cpp @@ -1,6 +1,6 @@ #include "wifi-auth-thread.h" -#include +#include void WifiAuthThread::run() { @@ -11,9 +11,9 @@ void WifiAuthThread::run() QDBusConnection::systemBus() ); QDBusReply reply= interface.call("CheckConnectivity"); if (reply.isValid()) { - //qDebug() << "-----------------------> 000000000000000011" << reply.value(); if (reply.value() == 2) { - system("gdbus call --session --dest org.gnome.Shell.PortalHelper --object-path /org/gnome/Shell/PortalHelper --method org.gtk.Application.Activate []"); + //system("xdg-open http://nmcheck.gnome.org"); + QProcess::startDetached(QString("xdg-open http://nmcheck.gnome.org")); } } }