diff options
author | Darrell Anderson <[email protected]> | 2012-06-08 15:51:46 -0500 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2012-06-08 15:51:46 -0500 |
commit | 6ed1ea98db6b1b369e7561efcc2c666b810e5446 (patch) | |
tree | 69da6d265387965c04a9584547ec42d4d372717d /kded/kded.cpp | |
parent | 09d01cacf80d21ad213e6520b35e7f06e9546a83 (diff) | |
download | tdelibs-6ed1ea98db6b1b369e7561efcc2c666b810e5446.tar.gz tdelibs-6ed1ea98db6b1b369e7561efcc2c666b810e5446.zip |
Update XDG information in support of bug report 892.
Diffstat (limited to 'kded/kded.cpp')
-rw-r--r-- | kded/kded.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kded/kded.cpp b/kded/kded.cpp index a438fa546..4b891d48a 100644 --- a/kded/kded.cpp +++ b/kded/kded.cpp @@ -172,7 +172,7 @@ void Kded::initModules() for(KService::List::ConstIterator it = kdedModules.begin(); it != kdedModules.end(); ++it) { KService::Ptr service = *it; - bool autoload = service->property("X-KDE-Kded-autoload", TQVariant::Bool).toBool(); + bool autoload = service->property("X-TDE-Kded-autoload", TQVariant::Bool).toBool(); config->setGroup(TQString("Module-%1").arg(service->desktopEntryName())); autoload = config->readBoolEntry("autoload", autoload); for (TQStringList::Iterator module = blacklist.begin(); module != blacklist.end(); ++module) @@ -186,7 +186,7 @@ void Kded::initModules() if( m_newStartup ) { // see ksmserver's README for description of the phases - TQVariant phasev = service->property("X-KDE-Kded-phase", TQVariant::Int ); + TQVariant phasev = service->property("X-TDE-Kded-phase", TQVariant::Int ); int phase = phasev.isValid() ? phasev.toInt() : 2; bool prevent_autoload = false; switch( phase ) @@ -211,7 +211,7 @@ void Kded::initModules() loadModule(service, false); } bool dontLoad = false; - TQVariant p = service->property("X-KDE-Kded-load-on-demand", TQVariant::Bool); + TQVariant p = service->property("X-TDE-Kded-load-on-demand", TQVariant::Bool); if (p.isValid() && (p.toBool() == false)) dontLoad = true; if (dontLoad) @@ -230,10 +230,10 @@ void Kded::loadSecondPhase() for(KService::List::ConstIterator it = kdedModules.begin(); it != kdedModules.end(); ++it) { KService::Ptr service = *it; - bool autoload = service->property("X-KDE-Kded-autoload", TQVariant::Bool).toBool(); + bool autoload = service->property("X-TDE-Kded-autoload", TQVariant::Bool).toBool(); config->setGroup(TQString("Module-%1").arg(service->desktopEntryName())); autoload = config->readBoolEntry("autoload", autoload); - TQVariant phasev = service->property("X-KDE-Kded-phase", TQVariant::Int ); + TQVariant phasev = service->property("X-TDE-Kded-phase", TQVariant::Int ); int phase = phasev.isValid() ? phasev.toInt() : 2; if( phase == 2 && autoload ) loadModule(service, false); @@ -266,7 +266,7 @@ KDEDModule *Kded::loadModule(const KService *s, bool onDemand) if (onDemand) { - TQVariant p = s->property("X-KDE-Kded-load-on-demand", TQVariant::Bool); + TQVariant p = s->property("X-TDE-Kded-load-on-demand", TQVariant::Bool); if (p.isValid() && (p.toBool() == false)) { noDemandLoad(s->desktopEntryName()); @@ -277,12 +277,12 @@ KDEDModule *Kded::loadModule(const KService *s, bool onDemand) KLibLoader *loader = KLibLoader::self(); - TQVariant v = s->property("X-KDE-FactoryName", TQVariant::String); + TQVariant v = s->property("X-TDE-FactoryName", TQVariant::String); TQString factory = v.isValid() ? v.toString() : TQString::null; if (factory.isEmpty()) { // Stay bugward compatible - v = s->property("X-KDE-Factory", TQVariant::String); + v = s->property("X-TDE-Factory", TQVariant::String); factory = v.isValid() ? v.toString() : TQString::null; } if (factory.isEmpty()) |