From 707dba4d4ebbb05d9f14fe42bfdaaea570706b3e Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Tue, 28 Jul 2026 13:36:21 +0900 Subject: nongnu: element-desktop: Fix icon. * nongnu/packages/messaging.scm (element-desktop) [#:phases] {setup-cwd}: Adjust StartupWmClass. Signed-off-by: Jelle Licht --- nongnu/packages/messaging.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nongnu/packages/messaging.scm b/nongnu/packages/messaging.scm index e7c85a1..04004ec 100644 --- a/nongnu/packages/messaging.scm +++ b/nongnu/packages/messaging.scm @@ -68,7 +68,13 @@ ;; Fix the .desktop file binary location. (substitute* '("share/applications/element-desktop.desktop") (("/opt/Element/") - (string-append #$output "/bin/"))))) + (string-append #$output "/bin/")) + ;; Use a lowercase 'element' WMClass, to match the + ;; application ID, otherwise the icon is not displayed + ;; correctly when using Wayland (see: + ;; ). + (("StartupWMClass=Element") + "StartupWMClass=element")))) (add-after 'install 'symlink-binary-file (lambda _ (mkdir-p (string-append #$output "/bin")) -- cgit v1.2.3