mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kded: remove now redundant command-line option
same as calling `kbuildsycoca4` Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
492be17944
commit
c8549a09f6
1 changed files with 0 additions and 15 deletions
|
@ -25,7 +25,6 @@
|
|||
#include <kcrash.h>
|
||||
#include <kdeversion.h>
|
||||
#include <kapplication.h>
|
||||
#include <kapplication.h>
|
||||
#include <kcmdlineargs.h>
|
||||
#include <kaboutdata.h>
|
||||
#include <klocale.h>
|
||||
|
@ -654,19 +653,11 @@ int main(int argc, char *argv[])
|
|||
KDE_VERSION_STRING,
|
||||
ki18n("KDE Daemon - triggers Sycoca database updates when needed"));
|
||||
|
||||
KCmdLineOptions options;
|
||||
options.add("check", ki18n("Check Sycoca database only once"));
|
||||
|
||||
KCmdLineArgs::init(argc, argv, &aboutData);
|
||||
|
||||
KCmdLineArgs::addCmdLineOptions(options);
|
||||
|
||||
// WABA: Make sure not to enable session management.
|
||||
putenv(qstrdup("SESSION_MANAGER="));
|
||||
|
||||
// Parse command line before checking DCOP
|
||||
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
|
||||
|
||||
KComponentData componentData(&aboutData);
|
||||
KSharedConfig::Ptr config = componentData.config(); // Enable translations.
|
||||
|
||||
|
@ -677,12 +668,6 @@ int main(int argc, char *argv[])
|
|||
KDE_signal(SIGHUP, sighandler);
|
||||
|
||||
KConfigGroup cg(config, "General");
|
||||
if (args->isSet("check")) {
|
||||
checkStamps = cg.readEntry("CheckFileStamps", true);
|
||||
runBuildSycoca();
|
||||
return 0;
|
||||
}
|
||||
|
||||
HostnamePollInterval = cg.readEntry("HostnamePollInterval", 5000);
|
||||
bCheckSycoca = cg.readEntry("CheckSycoca", true);
|
||||
bCheckUpdates = cg.readEntry("CheckUpdates", true);
|
||||
|
|
Loading…
Add table
Reference in a new issue