indicatorhelper_win: make sure we kill all kdeconnect executables when Quit is triggered

This commit is contained in:
Piyush Aggarwal 2021-06-15 13:33:51 +05:30
parent f681911dd3
commit 62e02180df
2 changed files with 8 additions and 0 deletions

View file

@ -21,6 +21,10 @@
namespace processes {
const QString dbus_daemon = QStringLiteral("dbus-daemon.exe");
const QString kdeconnect_daemon = QStringLiteral("kdeconnectd.exe");
const QString kdeconnect_app = QStringLiteral("kdeconnect-app.exe");
const QString kdeconnect_handler = QStringLiteral("kdeconnect-handler.exe");
const QString kdeconnect_settings = QStringLiteral("kdeconnect-settings.exe");
const QString kdeconnect_sms = QStringLiteral("kdeconnect-sms.exe");
};
#endif

View file

@ -22,6 +22,10 @@ IndicatorHelper::IndicatorHelper(const QUrl& indicatorUrl)
IndicatorHelper::~IndicatorHelper() {
this->terminateProcess(processes::dbus_daemon, m_indicatorUrl);
this->terminateProcess(processes::kdeconnect_app, m_indicatorUrl);
this->terminateProcess(processes::kdeconnect_handler, m_indicatorUrl);
this->terminateProcess(processes::kdeconnect_settings, m_indicatorUrl);
this->terminateProcess(processes::kdeconnect_sms, m_indicatorUrl);
this->terminateProcess(processes::kdeconnect_daemon, m_indicatorUrl);
}