Skip to content

Commit

Permalink
Fix ApplicationDomain
Browse files Browse the repository at this point in the history
  • Loading branch information
travier committed May 25, 2023
1 parent 60730cf commit fc96e89
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
34 changes: 34 additions & 0 deletions 0001-fix-app-domain.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
From 21db54a65fdb91da66c1f5f291298c066b4cf83a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timoth=C3=A9e=20Ravier?= <tim@siosm.fr>
Date: Thu, 25 May 2023 12:26:34 +0200
Subject: [PATCH] WIP

---
src/main.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.cpp b/src/main.cpp
index d39455bf..c6c1efc0 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -110,6 +110,8 @@ int main(int argc, char **argv)

KleopatraApplication app(argc, argv);

+ KLocalizedString::setApplicationDomain("kleopatra");
+
STARTUP_TIMING << "Application created";
/* Create the unique service ASAP to prevent double starts if
* the application is started twice very quickly. */
@@ -128,8 +130,6 @@ int main(int argc, char **argv)

app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kleopatra"), app.windowIcon()));

- KLocalizedString::setApplicationDomain("kleopatra");
-
// Initialize GpgME
{
const GpgME::Error gpgmeInitError = GpgME::initializeLibrary(0);
--
2.40.1

4 changes: 4 additions & 0 deletions org.kde.kleopatra.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@
"stable-only": true,
"url-template": "https://download.kde.org/stable/release-service/$version/src/kleopatra-$version.tar.xz"
}
},
{
"type": "patch",
"path": "0001-fix-app-domain.patch"
}
]
}
Expand Down

0 comments on commit fc96e89

Please sign in to comment.