[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasma-workspace] krunner: KRunner: Use KDBusService after parsing the command line params
From:       Vishesh Handa <me () vhanda ! in>
Date:       2015-10-29 12:25:07
Message-ID: E1ZrmGR-0005Lh-91 () scm ! kde ! org
[Download RAW message or body]

Git commit 981737000b29d8ab42e73d8643dd64ade7ea06ec by Vishesh Handa.
Committed on 29/10/2015 at 12:23.
Pushed by vhanda into branch 'master'.

KRunner: Use KDBusService after parsing the command line params

This way --version and --help work even when krunner is already running.
Useful for determining the version number.

M  +2    -1    krunner/main.cpp

http://commits.kde.org/plasma-workspace/981737000b29d8ab42e73d8643dd64ade7e=
a06ec

diff --git a/krunner/main.cpp b/krunner/main.cpp
index 2a37cce..771cec4 100644
--- a/krunner/main.cpp
+++ b/krunner/main.cpp
@@ -51,13 +51,14 @@ int main(int argc, char **argv)
     app.setApplicationVersion(version);
     app.setQuitOnLastWindowClosed(false);
     parser.setApplicationDescription(i18n("Run Command interface"));
-    KDBusService service(KDBusService::Unique);
 =

     parser.addVersionOption();
     parser.addHelpOption();
     parser.addVersionOption();
     parser.process(app);
 =

+    KDBusService service(KDBusService::Unique);
+
     KAboutData aboutData("krunner",
         i18n("krunner"),
         version,

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic