diff --git a/debian/kylin-nm.postinst b/debian/kylin-nm.postinst old mode 100644 new mode 100755 index 3a4fc83b..e99563ba --- a/debian/kylin-nm.postinst +++ b/debian/kylin-nm.postinst @@ -10,5 +10,5 @@ fi echo "kylin nm set cap success" -exit(0) +exit 0 diff --git a/src/frontend/netdetails/netdetail.cpp b/src/frontend/netdetails/netdetail.cpp index 7b38eb3b..3d367b24 100644 --- a/src/frontend/netdetails/netdetail.cpp +++ b/src/frontend/netdetails/netdetail.cpp @@ -20,6 +20,24 @@ //extern void qt_blurImage(QImage &blurImage, qreal radius, bool quality, int transposed); +void NetDetail::showDesktopNotify(const QString &message) +{ + QDBusInterface iface("org.freedesktop.Notifications", + "/org/freedesktop/Notifications", + "org.freedesktop.Notifications", + QDBusConnection::sessionBus()); + QList args; + args<<(tr("Kylin NM")) + <<((unsigned int) 0) + < deviceMap; - m_deviceComboBox->clear(); - m_devList.clear(); - enableDevice.clear(); - if (!m_switchGsettings) { qDebug() << "[LanPage]:m_switchGsettings is null" << Q_FUNC_INFO << __LINE__; return;