From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exGgX-0003DT-T3 for guix-patches@gnu.org; Sat, 17 Mar 2018 14:36:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exGgU-0004qC-O1 for guix-patches@gnu.org; Sat, 17 Mar 2018 14:36:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58994) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1exGgU-0004pg-Js for guix-patches@gnu.org; Sat, 17 Mar 2018 14:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1exGgU-00065R-B0 for guix-patches@gnu.org; Sat, 17 Mar 2018 14:36:02 -0400 Subject: [bug#30842] fvwm: Add .desktop file Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exGg3-0003Bh-Md for guix-patches@gnu.org; Sat, 17 Mar 2018 14:35:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exGg0-0003Wv-Jz for guix-patches@gnu.org; Sat, 17 Mar 2018 14:35:35 -0400 Received: from aibo.runbox.com ([91.220.196.211]:57966) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1exGg0-0003Os-C5 for guix-patches@gnu.org; Sat, 17 Mar 2018 14:35:32 -0400 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1exGfx-0000ec-7O for guix-patches@gnu.org; Sat, 17 Mar 2018 19:35:29 +0100 Received: from dslb-092-072-221-035.092.072.pools.vodafone-ip.de ([92.72.221.35] helo=localhost) by mailfront10.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1exGfu-0001wH-DL for guix-patches@gnu.org; Sat, 17 Mar 2018 19:35:26 +0100 Date: Sat, 17 Mar 2018 18:35:40 +0000 From: ng0 Message-ID: <20180317183540.o6dkzej7kjawdua7@abyayala> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="v6mip63lp625ur45" Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30842@debbugs.gnu.org --v6mip63lp625ur45 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline This patch adds a .desktop file for FVWM so that it can be started from SLIM & friends. -- A88C8ADD129828D7EAC02E52E22F9BBFEE348588 https://n0.is --v6mip63lp625ur45 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-fvwm-Add-.desktop-file.patch" Content-Transfer-Encoding: quoted-printable =46rom 2a5c19c089ba5cece58e9f681aba8ed9ec9a6f0e Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Sat, 17 Mar 2018 15:57:19 +0000 Subject: [PATCH] gnu: fvwm: Add '.desktop' file. * gnu/packages/fvwm.scm (fvwm)[arguments]: Add new phase to create '.deskto= p' file. --- gnu/packages/fvwm.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/fvwm.scm b/gnu/packages/fvwm.scm index 5ff3d5e4f..a4c31aefc 100644 --- a/gnu/packages/fvwm.scm +++ b/gnu/packages/fvwm.scm @@ -45,6 +45,27 @@ (base32 "0wzghjgy65pkn31rgl14fngizw7nbkzbxsfa670xmrndpmd4sr81")))) (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'install-xsession + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (xsessions (string-append out "/share/xsessions"))) + (mkdir-p xsessions) + (with-output-to-file + (string-append xsessions "/fvwm2.desktop") + (lambda _ + (format #t + "[Desktop Entry]~@ + Name=3DFVWM~@ + Comment=3DFVWM~@ + Exec=3D~a/bin/fvwm~@ + TryExec=3D~@*~a/bin/fvwm~@ + Icon=3D~@ + Type=3DApplication~%" + out)))) + #t))))) (native-inputs `(("perl" ,perl) ("pkg-config" ,pkg-config) --=20 2.16.2 --v6mip63lp625ur45--