Commit eb90c6cb authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

[plasmoidviewer] Create KDBusService only after processing cmdl args

No need to setup DBus things if just handling -v or -h
parent 68322574
......@@ -47,8 +47,6 @@ int main(int argc, char **argv)
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("plasmoidviewer");
KDBusService service(KDBusService::Multiple);
app.setApplicationVersion(PROJECT_VERSION);
QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("plasma"), app.windowIcon()));
......@@ -89,6 +87,8 @@ int main(int argc, char **argv)
parser.addVersionOption();
parser.process(app);
KDBusService service(KDBusService::Multiple);
const QString applet = parser.value("applet");
if (applet.isEmpty()) {
qWarning() << "An applet name must be specified";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment