Subject: [PATCH] gnu: emacs-exwm: Provide absolute file name in '.desktop' file.
From: Diego Nicola Barbato <[email-masked]>
To: [email-masked]
Date: Sun, 07 Apr 2019 21:16:02 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Guix,

As mentioned on IRC GDM currently crashes when selecting EXWM.  This
patch should fix it.

Regards,

Diego

From 82b6422072fd35385d68d6c5eda4bbce6d63665e Mon Sep 17 00:00:00 2001
From: Diego Nicola Barbato <[email-masked]>
Date: Sun, 7 Apr 2019 19:52:52 +0200
Subject: [PATCH] gnu: emacs-exwm: Provide absolute file name in '.desktop'
 file.

Previously GDM would crash when selecting MATE.

* gnu/packages/emacs-xyz.scm (emacs-exwm)[arguments]: Rewrite
  'install-xsession' phase such that .desktop file contains an absolute file
  name.
---
 gnu/packages/emacs-xyz.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index b89b3cf79b..2860bd5a8a 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -7005,7 +7005,7 @@ It should enable you to implement low-level X11 applications.")
                      Name=~a~@
                      Comment=~a~@
                      Exec=~a~@
-                     TryExec=~@*~a~@
+                     TryExec=~:*~a~@
                      Type=Application~%" ,name ,synopsis exwm-executable)))
                ;; Add a shell wrapper to bin
                (with-output-to-file exwm-executable
-- 
2.21.0