From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +EEPKrChB2PmYQEAbAwnHQ (envelope-from ) for ; Thu, 25 Aug 2022 18:22:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2I/1KbChB2NT6QAAauVa8A (envelope-from ) for ; Thu, 25 Aug 2022 18:22:08 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2D2C088F2 for ; Thu, 25 Aug 2022 18:22:08 +0200 (CEST) Received: from localhost ([::1]:54538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRFcN-0003Ht-0o for larch@yhetil.org; Thu, 25 Aug 2022 12:22:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oREtn-0007o5-0x for guix-patches@gnu.org; Thu, 25 Aug 2022 11:36:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33114) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oREtm-0007Jp-NI for guix-patches@gnu.org; Thu, 25 Aug 2022 11:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oREtm-0001ZA-Ik for guix-patches@gnu.org; Thu, 25 Aug 2022 11:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57406] [PATCH] qtile desktop file install Resent-From: jonscoresby@mailbox.org Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Aug 2022 15:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57406 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57406@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.16614417065928 (code B ref -1); Thu, 25 Aug 2022 15:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Aug 2022 15:35:06 +0000 Received: from localhost ([127.0.0.1]:51092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oREsq-0001XW-PE for submit@debbugs.gnu.org; Thu, 25 Aug 2022 11:35:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:35836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRBLe-0003C2-T7 for submit@debbugs.gnu.org; Thu, 25 Aug 2022 07:48:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRBLa-00074y-AV for guix-patches@gnu.org; Thu, 25 Aug 2022 07:48:34 -0400 Received: from mout-p-102.mailbox.org ([2001:67c:2050:0:465::102]:59124) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1oRBLX-0007la-Sd for guix-patches@gnu.org; Thu, 25 Aug 2022 07:48:29 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4MD1SQ472sz9sWd for ; Thu, 25 Aug 2022 13:48:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1661428102; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=2BtA295HCNhAjFFKSVXKxHQ+s2BmpG/5RmQn1326wGc=; b=C/ABQphJ69asriMcmFloz/1EwNyLmBbaceqvjcl1/Pf/mlHcOJvDHkwS+qxp3S1iQmP8DV DQkyX3xt6zxtl+doeWPyydZ3/vj/tcOiSHl7mwOb1KtFN5Fb3/ZcgBkRiGaBlfITd3Ffmu A7JzuYbKam2WzCMx+Ao2E6IwpUslUVs3w9D1OAuF0eaV2t3sS97bgcajnHE1ngk2dtaWmf i1wQFMur5B60t5K4jlMaDmlt4X0nwlah5roC8MPAgb9Abl+71pOpL92d4hDXwdMIonuth2 Haor4oZhBH82NDhlZJanXPAaRl4rgGUKX4BKPy+JrTmJCrHj8usdaLWL5i4gyg== Date: Thu, 25 Aug 2022 05:48:22 -0600 (MDT) Message-ID: <1116003924.687612.1661428102310@office.mailbox.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_687611_1424367328.1661428102307" X-Priority: 3 Importance: Normal X-MBO-RS-META: qm961tmxb5xmbsip7rp5xcnfaqybuthc X-MBO-RS-ID: 29f70f7964011d590da Received-SPF: pass client-ip=2001:67c:2050:0:465::102; envelope-from=jonscoresby@mailbox.org; helo=mout-p-102.mailbox.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 25 Aug 2022 11:35:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Thu, 25 Aug 2022 12:21:04 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: jonscoresby@mailbox.org X-ACL-Warn: , jonscoresby--- via Guix-patches From: jonscoresby--- via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661444528; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=2BtA295HCNhAjFFKSVXKxHQ+s2BmpG/5RmQn1326wGc=; b=CQ35nu2S3asQgRF7ge9I62E5vx+M5jy1nKyLTSEmR+Ep+7VTh05d9KiVmANYG2zVuPMiq4 OXVVng2krEOXcjmdQWEkpTUyYNp6s37X8B+VJWQiPuehD4Srkf96Y6eSMTNUadesQv8j+o ds9P7Ut3bXKNnhL7tzp9OFJdfzxk7MUx4lYWiwe6D1IMxQ2795Iecau6yTllZMxk6zoSQa 6ykqqXZOeTVQNN1m4PRChQvxDSrwqDWT7kS3dlarpTHqfmxYQyib78wfnfm2zxw6dvk+xU WNW9of1u3v4UhED5wBF7wqbUJVCy3z6/+j19JLkaXnx51in40ZOyX0R9cK19LA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661444528; a=rsa-sha256; cv=none; b=a69mPGBFUv2bKcvoLKdO7p256pnumIxEqs45KpFpTX0QBlPQdkxU7Zl4usiGg7xe+EA0i8 KPYxQ20XL6hUGLj1m5gbMibsoaFEU4rMKRlP8DCEj1zrZ/8KovmJ+CTYP9JiEBPAY5kskz v39xMU1qs0ZjH3QJV8Hom55dCTgpgVWXlVPbB9dr35H+asvlaD2fp9YjIrMF20OCSbD3+8 3LAc2IIPT2d6h13gJuW0e7hZsPALXRpNsHVnQjz0O2kPXpmXzwoMTRePkGyzThE0x0AS9N 8QL+XVFpJ5ybEFnHm0Y0A0pES2Lh2vd/1hKtUOogBJyHDS1oDNFHmG7qaPUluw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b="C/ABQphJ"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b="C/ABQphJ"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2D2C088F2 X-Spam-Score: -4.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: RqYTxfCEZBfX ------=_Part_687611_1424367328.1661428102307 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I don't know if my previous patch will be discarded or not, but it had an error (this is my first time). This is the revised, working patch. --- gnu/packages/wm.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 7ea6840689..5084d194a6 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -579,7 +579,16 @@ (define-public qtile (assoc-ref inputs "pango") "/lib/libpango-1.0.so.0\")\n")) (("^pangocairo = ffi.dlopen.*") (string-append "pangocairo = ffi.dlopen(\"" - (assoc-ref inputs "pango") "/lib/libpangocairo-1.0.so.0\")\n")))))))) + (assoc-ref inputs "pango") "/lib/libpangocairo-1.0.so.0\")\n"))))) + (add-after 'install 'install-xsession + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (xsessions (string-append out "/share/xsessions")) + (qtile (string-append out "/bin/qtile start"))) + (mkdir-p xsessions) + (copy-file "resources/qtile.desktop" (string-append xsessions "/qtile.desktop")) + (substitute* (string-append xsessions "/qtile.desktop") + (("qtile start") qtile)))))))) (inputs (list glib pango pulseaudio)) (propagated-inputs base-commit: 80baa8f87aa69151dffe04fb432a37c91d4dd242 -- 2.37.2 ------=_Part_687611_1424367328.1661428102307 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
I don't know if my previous patch will be discarded or not, but it had an error (this is my first time). This is the revised, working patch.
---
gnu/packages/wm.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 7ea6840689..5084d194a6 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -579,7 +579,16 @@ (define-public qtile
(assoc-ref inputs "pango") "/lib/libpango-1.0.so.0\")\n"))
(("^pangocairo = ffi.dlopen.*")
(string-append "pangocairo = ffi.dlopen(\""
- (assoc-ref inputs "pango") "/lib/libpangocairo-1.0.so.0\")\n"))))))))
+ (assoc-ref inputs "pango") "/lib/libpangocairo-1.0.so.0\")\n")))))
+ (add-after 'install 'install-xsession
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (xsessions (string-append out "/share/xsessions"))
+ (qtile (string-append out "/bin/qtile start")))
+ (mkdir-p xsessions)
+ (copy-file "resources/qtile.desktop" (string-append xsessions "/qtile.desktop"))
+ (substitute* (string-append xsessions "/qtile.desktop")
+ (("qtile start") qtile))))))))
(inputs
(list glib pango pulseaudio))
(propagated-inputs
base-commit: 80baa8f87aa69151dffe04fb432a37c91d4dd242
--
2.37.2
------=_Part_687611_1424367328.1661428102307--