Commit ad1fb0cf authored by Dominik Haumann's avatar Dominik Haumann

Fix window icon in wayland sessions

REVIEW: 128839
BUG: 368266
BUG: 368267
parent 4bfaf783
......@@ -24,6 +24,7 @@
#include "katewaiter.h"
#include <KAboutData>
#include <kcoreaddons_version.h> // for KAboutData::setDesktopFileName()
#include <KLocalizedString>
#include <KWindowSystem>
#include <KStartupInfo>
......@@ -101,6 +102,13 @@ int main(int argc, char **argv)
*/
aboutData.setOrganizationDomain("kde.org");
/**
* desktop file association to make application icon work (e.g. in Wayland window decoration)
*/
#if KCOREADDONS_VERSION >= QT_VERSION_CHECK(5, 16, 0)
aboutData.setDesktopFileName(QStringLiteral("org.kde.kate"));
#endif
aboutData.addAuthor(i18n("Christoph Cullmann"), i18n("Maintainer"), QStringLiteral("cullmann@kde.org"), QStringLiteral("http://www.cullmann.io"));
aboutData.addAuthor(i18n("Anders Lund"), i18n("Core Developer"), QStringLiteral("anders@alweb.dk"), QStringLiteral("http://www.alweb.dk"));
aboutData.addAuthor(i18n("Joseph Wenninger"), i18n("Core Developer"), QStringLiteral("jowenn@kde.org"), QStringLiteral("http://stud3.tuwien.ac.at/~e9925371"));
......
......@@ -25,6 +25,7 @@
#include <ktexteditor/editor.h>
#include <KAboutData>
#include <kcoreaddons_version.h> // for KAboutData::setDesktopFileName()
#include <KLocalizedString>
#include <KMessageBox>
#include <KDBusService>
......@@ -74,13 +75,20 @@ extern "C" Q_DECL_EXPORT int main(int argc, char **argv)
i18n("KWrite"),
QStringLiteral(KATE_VERSION),
i18n("KWrite - Text Editor"), KAboutLicense::LGPL_V2,
i18n("(c) 2000-2015 The Kate Authors"), QString(), QStringLiteral("http://kate-editor.org"));
i18n("(c) 2000-2016 The Kate Authors"), QString(), QStringLiteral("http://kate-editor.org"));
/**
* right dbus prefix == org.kde.
*/
aboutData.setOrganizationDomain(QByteArray("kde.org"));
/**
* desktop file association to make application icon work (e.g. in Wayland window decoration)
*/
#if KCOREADDONS_VERSION >= QT_VERSION_CHECK(5, 16, 0)
aboutData.setDesktopFileName(QStringLiteral("org.kde.kwrite"));
#endif
aboutData.addAuthor(i18n("Christoph Cullmann"), i18n("Maintainer"), QStringLiteral("cullmann@kde.org"), QStringLiteral("http://www.cullmann.io"));
aboutData.addAuthor(i18n("Anders Lund"), i18n("Core Developer"), QStringLiteral("anders@alweb.dk"), QStringLiteral("http://www.alweb.dk"));
aboutData.addAuthor(i18n("Joseph Wenninger"), i18n("Core Developer"), QStringLiteral("jowenn@kde.org"), QStringLiteral("http://stud3.tuwien.ac.at/~e9925371"));
......
Markdown is supported
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