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 3/4] gnu: tome4: Use make-desktop-entry-file.
Date: Thu, 30 May 2019 10:17:27 +0200	[thread overview]
Message-ID: <20190530081728.27140-2-mail@ambrevar.xyz> (raw)
In-Reply-To: <20190530081728.27140-1-mail@ambrevar.xyz>

* gnu/packages/games.scm (tome4)[arguments]: Do it.
---
 gnu/packages/games.scm | 20 +++++++-------------
 1 file changed, 7 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 4fdc9b01e6..af875435d6 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -5035,19 +5035,13 @@ Crowther & Woods, its original authors, in 1995.  It has been known as
                         (copy-recursively "game" (string-append data "/game"))
                         ;; launcher
                         (mkdir-p applications)
-                        (with-output-to-file (string-append applications "/"
-                                                            ,name ".desktop")
-                          (lambda ()
-                            (display
-                             (string-append
-                              "[Desktop Entry]
-Name=ToME4
-Comment=" ,synopsis "\n"
-"Exec=" ,name "\n"
-"Icon=" icon "\n"
-"Terminal=false
-Type=Application
-Categories=Game;RolePlaying;\n")))))
+                        (make-desktop-entry-file
+                         (string-append applications "/" ,name ".desktop")
+                         #:name "ToME4"
+                         #:comment ,synopsis
+                         #:exec ,name
+                         #:icon icon
+                         #:categories '("Game" "RolePlaying")))
                       #t)))))
     (home-page "https://te4.org")
     (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
-- 
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 ` [bug#36000] [PATCH 2/4] gnu: emacs-exwm: Use make-desktop-entry-file Pierre Neidhardt
2019-05-30  8:17   ` Pierre Neidhardt [this message]
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-2-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).