kded: log the kde_running variable value

if it is false then modules that are not ment for full session are not
automatically loaded on init so it shall serve as a hint when debugging

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-11-25 20:01:24 +02:00
parent e20d610997
commit bab2e1b6e4

View file

@ -210,7 +210,6 @@ void Kded::initModules()
if (!kde_running) {
kde_running = (QProcess::execute(QString::fromLatin1("kcheckrunning")) == 0);
}
// qDebug() << Q_FUNC_INFO << kde_running;
if (kde_running) {
// not the same user like the one running the session (most likely we're run via sudo or something)
const QByteArray sessionUID = qgetenv("KDE_SESSION_UID");
@ -218,6 +217,7 @@ void Kded::initModules()
kde_running = false;
}
}
kDebug(7020) << "kde_running" << kde_running;
// Preload kded modules.
const KService::List kdedModules = KServiceTypeTrader::self()->query("KDEDModule");