From patchwork Thu May 30 08:17:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierre Neidhardt X-Patchwork-Id: 14159 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 59A8B1704D; Thu, 30 May 2019 09:18:08 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 0F4601700C for ; Thu, 30 May 2019 09:18:08 +0100 (BST) Received: from localhost ([127.0.0.1]:48998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWGGF-0007Ao-Gs for patchwork@mira.cbaines.net; Thu, 30 May 2019 04:18:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWGGC-00079b-Gz for guix-patches@gnu.org; Thu, 30 May 2019 04:18:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hWGGB-0003qR-DF for guix-patches@gnu.org; Thu, 30 May 2019 04:18:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47169) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hWGGB-0003qH-9g for guix-patches@gnu.org; Thu, 30 May 2019 04:18:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hWGGB-0006kZ-4A for guix-patches@gnu.org; Thu, 30 May 2019 04:18:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36000] [PATCH 3/4] gnu: tome4: Use make-desktop-entry-file. Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 30 May 2019 08:18:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36000 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 36000@debbugs.gnu.org Received: via spool by 36000-submit@debbugs.gnu.org id=B36000.155920426725907 (code B ref 36000); Thu, 30 May 2019 08:18:03 +0000 Received: (at 36000) by debbugs.gnu.org; 30 May 2019 08:17:47 +0000 Received: from localhost ([127.0.0.1]:60710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWGFv-0006jh-6d for submit@debbugs.gnu.org; Thu, 30 May 2019 04:17:47 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:59261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWGFr-0006jI-M4 for 36000@debbugs.gnu.org; Thu, 30 May 2019 04:17:44 -0400 X-Originating-IP: 92.169.116.19 Received: from localhost.localdomain (lfbn-1-4117-19.w92-169.abo.wanadoo.fr [92.169.116.19]) (Authenticated sender: mail@ambrevar.xyz) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 637FF1C0009 for <36000@debbugs.gnu.org>; Thu, 30 May 2019 08:17:39 +0000 (UTC) From: Pierre Neidhardt Date: Thu, 30 May 2019 10:17:27 +0200 Message-Id: <20190530081728.27140-2-mail@ambrevar.xyz> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530081728.27140-1-mail@ambrevar.xyz> References: <20190530081728.27140-1-mail@ambrevar.xyz> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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