unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Pierre Neidhardt <mail@ambrevar.xyz>
To: 36000@debbugs.gnu.org
Subject: [bug#36000] [PATCH 2/4] gnu: emacs-exwm: Use make-desktop-entry-file.
Date: Thu, 30 May 2019 10:17:26 +0200	[thread overview]
Message-ID: <20190530081728.27140-1-mail@ambrevar.xyz> (raw)
In-Reply-To: <20190530071138.31690-1-mail@ambrevar.xyz>

* gnu/packages/emacs-xyz.scm (emacs-exwm)[arguments]: Do it.
---
 gnu/packages/emacs-xyz.scm | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 9199b45e40..fed92528c3 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -7498,15 +7498,12 @@ It should enable you to implement low-level X11 applications.")
                ;; Add a .desktop file to xsessions
                (mkdir-p xsessions)
                (mkdir-p bin)
-               (with-output-to-file
-                   (string-append xsessions "/exwm.desktop")
-                 (lambda _
-                   (format #t "[Desktop Entry]~@
-                     Name=~a~@
-                     Comment=~a~@
-                     Exec=~a~@
-                     TryExec=~:*~a~@
-                     Type=Application~%" ,name ,synopsis exwm-executable)))
+               (make-desktop-entry-file
+                (string-append xsessions "/exwm.desktop")
+                #:name ,name
+                #:comment ,synopsis
+                #:exec exwm-executable
+                #:try-exec exwm-executable)
                ;; Add a shell wrapper to bin
                (with-output-to-file exwm-executable
                  (lambda _
-- 
2.21.0

  reply	other threads:[~2019-05-30  8:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-30  7:11 [bug#36000] [PATCH 1/4] guix: Add helper for generating desktop entry files Pierre Neidhardt
2019-05-30  8:17 ` Pierre Neidhardt [this message]
2019-05-30  8:17   ` [bug#36000] [PATCH 3/4] gnu: tome4: Use make-desktop-entry-file Pierre Neidhardt
2019-05-30  8:17   ` [bug#36000] [PATCH 4/4] gnu: drascula: " Pierre Neidhardt
     [not found] ` <handler.36000.B.155920231822519.ack@debbugs.gnu.org>
2019-10-12  8:43   ` [bug#36000] Acknowledgement ([PATCH 1/4] guix: Add helper for generating desktop entry files.) Pierre Neidhardt
2019-10-12 18:44     ` Efraim Flashner
2019-10-12 19:05       ` Pierre Neidhardt
2019-10-12 19:12         ` Efraim Flashner
2019-10-18  8:43           ` Pierre Neidhardt
2019-10-18 14:40             ` Ludovic Courtès
2019-10-18 15:10               ` Marius Bakke
2019-10-18 15:13             ` Marius Bakke
2019-10-18 15:22               ` Pierre Neidhardt
2019-10-18 15:24                 ` Marius Bakke
2019-10-19 10:46                   ` Pierre Neidhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190530081728.27140-1-mail@ambrevar.xyz \
    --to=mail@ambrevar.xyz \
    --cc=36000@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).