11
0
Files
plasma5-workspace/0002-Set-aboutData-for-plasmashell.patch

71 lines
2.1 KiB
Diff

From 6821b69fa1b06375123bffa0a7a492276a831a2b Mon Sep 17 00:00:00 2001
From: Bhushan Shah <bhush94@gmail.com>
Date: Tue, 24 Feb 2015 12:51:00 +0530
Subject: [PATCH 02/12] Set aboutData for plasmashell
Without AboutData kcrash is not able to send the bug reports to correct
product in bugzilla
REVIEW: 122704
---
shell/CMakeLists.txt | 1 +
shell/main.cpp | 16 ++++++++++++----
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/shell/CMakeLists.txt b/shell/CMakeLists.txt
index cb48ab8ed146a1f04b2125dd18e636f0b7cbca97..5d21ed924898fc045a0fcf51ab024a3c8c8624bd 100644
--- a/shell/CMakeLists.txt
+++ b/shell/CMakeLists.txt
@@ -79,6 +79,7 @@ target_link_libraries(plasmashell
KF5::IconThemes
KF5::Activities
KF5::GlobalAccel
+ KF5::CoreAddons
KF5::DBusAddons
KF5::Screen
KF5::Declarative
diff --git a/shell/main.cpp b/shell/main.cpp
index 005f908898b6a964b1a9a6df9e9507fddcca3a94..a4518ce6c89b297942f628d5e21b4d1a614480b2 100644
--- a/shell/main.cpp
+++ b/shell/main.cpp
@@ -22,6 +22,7 @@
#include <QQuickWindow>
#include <QSessionManager>
#include <QDebug>
+#include <KAboutData>
#include <kdbusservice.h>
#include <klocalizedstring.h>
@@ -45,10 +46,15 @@ int main(int argc, char *argv[])
KLocalizedString::setApplicationDomain("plasmashell");
QApplication app(argc, argv);
- app.setApplicationName("plasmashell");
- app.setApplicationDisplayName(i18n("Plasma"));
- app.setOrganizationDomain("kde.org");
- app.setApplicationVersion(PROJECT_VERSION);
+
+ KAboutData aboutData("plasmashell",
+ i18n("Plasma"),
+ QStringLiteral(PROJECT_VERSION),
+ i18n(description),
+ KAboutLicense::GPL);
+
+ KAboutData::setApplicationData(aboutData);
+
app.setQuitOnLastWindowClosed(false);
app.setWindowIcon(QIcon::fromTheme("plasma"));
@@ -93,6 +99,8 @@ int main(int argc, char *argv[])
cliOptions.process(app);
+ KAboutData::applicationData().setupCommandLine(&cliOptions);
+
if (cliOptions.isSet(shutupOption)) {
qInstallMsgHandler(noMessageOutput);
}
--
2.3.1