mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
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:
parent
e20d610997
commit
bab2e1b6e4
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,6 @@ void Kded::initModules()
|
||||||
if (!kde_running) {
|
if (!kde_running) {
|
||||||
kde_running = (QProcess::execute(QString::fromLatin1("kcheckrunning")) == 0);
|
kde_running = (QProcess::execute(QString::fromLatin1("kcheckrunning")) == 0);
|
||||||
}
|
}
|
||||||
// qDebug() << Q_FUNC_INFO << kde_running;
|
|
||||||
if (kde_running) {
|
if (kde_running) {
|
||||||
// not the same user like the one running the session (most likely we're run via sudo or something)
|
// 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");
|
const QByteArray sessionUID = qgetenv("KDE_SESSION_UID");
|
||||||
|
@ -218,6 +217,7 @@ void Kded::initModules()
|
||||||
kde_running = false;
|
kde_running = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
kDebug(7020) << "kde_running" << kde_running;
|
||||||
|
|
||||||
// Preload kded modules.
|
// Preload kded modules.
|
||||||
const KService::List kdedModules = KServiceTypeTrader::self()->query("KDEDModule");
|
const KService::List kdedModules = KServiceTypeTrader::self()->query("KDEDModule");
|
||||||
|
|
Loading…
Add table
Reference in a new issue