From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OOLxIP+4XF85VAAA0tVLHw (envelope-from ) for ; Sat, 12 Sep 2020 12:03:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WM86G/+4XF/AMAAA1q6Kng (envelope-from ) for ; Sat, 12 Sep 2020 12:03:11 +0000 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 48D0194071B for ; Sat, 12 Sep 2020 12:03:10 +0000 (UTC) Received: from localhost ([::1]:40622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kH4FI-0001qn-Qh for larch@yhetil.org; Sat, 12 Sep 2020 08:03:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kH4FC-0001qg-68 for guix-patches@gnu.org; Sat, 12 Sep 2020 08:03:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34979) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kH4FB-0003PY-T1 for guix-patches@gnu.org; Sat, 12 Sep 2020 08:03:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kH4FB-0008JJ-Ot for guix-patches@gnu.org; Sat, 12 Sep 2020 08:03:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43210] [PATCH] gnu: lxqt-config: Wrapping the lxqt-config and lxqt-config-input and setting the setxkbmap PATH for fixing save added layout Resent-From: "Hamzeh Nasajpour" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Sep 2020 12:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43210 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43210@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159991213531881 (code B ref -1); Sat, 12 Sep 2020 12:03:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Sep 2020 12:02:15 +0000 Received: from localhost ([127.0.0.1]:46525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kH4EE-0008Hv-4I for submit@debbugs.gnu.org; Sat, 12 Sep 2020 08:02:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:34372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kH4EC-0008HW-ES for submit@debbugs.gnu.org; Sat, 12 Sep 2020 08:02:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kH4EC-0001R4-3y for guix-patches@gnu.org; Sat, 12 Sep 2020 08:02:00 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:53993) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kH4E9-0003KW-Up for guix-patches@gnu.org; Sat, 12 Sep 2020 08:01:59 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 428794CF for ; Sat, 12 Sep 2020 08:01:55 -0400 (EDT) Received: from imap5 ([10.202.2.55]) by compute3.internal (MEProxy); Sat, 12 Sep 2020 08:01:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantherx.org; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm3; bh=izzcDwNJ89mbjGVrTSNDMQgECqvQX39 Qyv9FV9XrM6c=; b=HxkoHLwN3IVmTfgcOPK1t54yQK8ATNSdg8BZUuv2U6T71uN qmDJoz3ZsIq/Z4EqP+jkMrvPVUgumBg5zBc8RfV/BsqQKpcjpomeQmDhEaQ4yBSF 9opbiUnbj1V4fyoWD8ChPAiRmA807YbvLFIKnH2CURZmm1dydYrEvM+oHzeayh0x 2SKOUv5A85WXGPmY11cXp1dhDYvSLymfhGn1Mr9u7bZgHTvnfAqLoAmQVFV86XdB VXAZL0dDh6QTXM3GWo6GNXfT9zZWsmg/y28XudEuPw4PV+yxctrIO9FUUTZ9v1+l SHsqQipddK3gzWNXXeC7x7Y6XNdxInAF1SclK+Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=izzcDw NJ89mbjGVrTSNDMQgECqvQX39Qyv9FV9XrM6c=; b=o6QntzCA7KhZ9ETOvslgaT ndMrGgrnzDxkMgnODZfKFOzFfx4ClgXUYFNp6r46eFVNK0/GlQsGkXp6K0jmX1dP 0dwN+E9I0gSIbeUggQvdRLLPIH6wANAqbSAKW768A3qw9WatLnHDUOVtO7sw2S9T VjQvVYTy87Ddluh8bMTlZcsEOOJ2j3yEkJMbAuVFCDRv9tiR7qLPU7++nizX+UU8 MVd9arrqr5cCzoOAoETlO/7S0Yd5XYVdMhFgk6poqchucXuLuXZeiHH6QmS303kY sBxi1Gtgg8OGTU4bbKo0yMnDfD/8oLq4fFN+i+4fGeBRHUDzFV1aVx8JDOeD5N/w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudeiuddggeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgoufhushhpvggtthffohhmrghinhculdegledmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreerjeenucfhrhhomhepfdfjrghm iigvhhcupfgrshgrjhhpohhurhdfuceohhdrnhgrshgrjhhpohhurhesphgrnhhthhgvrh igrdhorhhgqeenucggtffrrghtthgvrhhnpeeuueekkeehgfdtheeuhfdvkeefleeugedt ieejueefvdeivdehvdefhfdugffggfenucffohhmrghinhepghhithhhuhgsrdhiohenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhrdhnrghs rghjphhouhhrsehprghnthhhvghrgidrohhrgh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id ABFC65C0099; Sat, 12 Sep 2020 08:01:54 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-259-g88fbbfa-fm-20200903.003-g88fbbfa3 Mime-Version: 1.0 Message-Id: <48a7703f-7edf-48e0-b8a9-8e03944d5e20@www.fastmail.com> In-Reply-To: <2a9af2f5-62b9-45c9-bfa5-430241158521@www.fastmail.com> References: <2a9af2f5-62b9-45c9-bfa5-430241158521@www.fastmail.com> Date: Sat, 12 Sep 2020 16:31:33 +0430 From: "Hamzeh Nasajpour" Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.19; envelope-from=h.nasajpour@pantherx.org; helo=wout3-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/12 08:01:55 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=pantherx.org header.s=fm3 header.b=HxkoHLwN; dkim=fail (rsa verify failed) header.d=messagingengine.com header.s=fm3 header.b=o6QntzCA; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 1.00 X-TUID: MS7HDcg5Dp6+ Hi guys. Seems that anyway we have to add `setxkbmap` to `propagated-inputs`. The previous commit will fix the adding `keyboard-layout` but without having the `setxkbmap` in `propagated-inputs` the added layouts won't add as permanent and will be reset after each reboot. So again, we need to add `setxkbmap` as a dependency in `propagated-inputs`. On Sat, Sep 5, 2020, at 10:24 AM, Hamzeh Nasajpour wrote: > diff --git a/gnu/packages/lxqt.scm b/gnu/packages/lxqt.scm > index 21587609ce..baa2ee6795 100644 > --- a/gnu/packages/lxqt.scm > +++ b/gnu/packages/lxqt.scm > @@ -379,6 +379,7 @@ the operating system LXQt is running on.") > ("qtbase" ,qtbase) > ("qtsvg" ,qtsvg) > ("qtx11extras" ,qtx11extras) > + ("setxkbmap" ,setxkbmap) > ("solid" ,solid) > ("xf86-input-libinput" ,xf86-input-libinput) > ("xkeyboard-config" ,xkeyboard-config) > @@ -418,7 +419,16 @@ the operating system LXQt is running on.") > (("\\$\\{LXQT_TRANSLATIONS_DIR\\}") > (string-append (assoc-ref outputs "out") > "/share/lxqt/translations"))) > - #t))))) > + #t)) > + (add-after 'install 'wrap-for-setxkbmap-path > + (lambda* (#:key outputs #:allow-other-keys) > + (let ((out (assoc-ref outputs "out")) > + (setxkbmap (assoc-ref %build-inputs > "setxkbmap"))) > + (wrap-program (string-append out > "/bin/lxqt-config") > + `("PATH" ":" prefix (,(string-append > setxkbmap "/bin/")))) > + (wrap-program (string-append out > "/bin/lxqt-config-input") > + `("PATH" ":" prefix (,(string-append > setxkbmap "/bin/")))) > + #t)))))) > (home-page "https://lxqt.github.io") > (synopsis "Tools to configure LXQt and the underlying operating > system") > (description "lxqt-config is providing several tools involved in > the