From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id iK2NACuR/mZ14wAAqHPOHw:P1 (envelope-from ) for ; Thu, 03 Oct 2024 12:42:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id iK2NACuR/mZ14wAAqHPOHw (envelope-from ) for ; Thu, 03 Oct 2024 14:42:19 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=sck9yEVZ; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=key2 header.b=TEVFxPCz; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1727959338; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=wOVsxgJ08dLMpp4dJlW74n+8RhIzlytVrftSJQ9f7EY=; b=pWtQWZdBpM/OF3o8igaamu4ODaXKzw9sDcgk1WOxKuQC+v7PLJysUZ9YtisbmljZvEfyAS dZqqwUjS+W37SoZgH1DztbIS70Z8/UZlO/x/zYePpuTNdmA0kxiYvfSsg8/et03IRBPZMz Z04XwActHtoU00f8Vjrpm2FNFFfikIjC+Pv94R57RcwBe8DKC0DayIfZHpu9cMrvCdV8WJ HIDpcdTZ4HktsfcjlLXV8rzGSnxOjUNxAmhvnmmlZfHIxdTQCwrPuiiMwwtYZhupTa6Xn2 SKC6iY+Fxe2O8zN/LejFctFVp0dkHfRWHYy10dSZ23ZfrxH3lByRVkt6c4N9qw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=sck9yEVZ; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=key2 header.b=TEVFxPCz; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727959338; a=rsa-sha256; cv=none; b=mlEYI0PDQha0PDp6hdXpJ+EKnlRcXqP3uDbJYLquNZ6/vKXf5LaAYcLpbU4RKu0xMBgc3M jdtvAI9VPlzcKoftlZ8+guMOakTxWWauZ+SlMEAeS/Q/Lo6mvehOumRZhFO48A6XjZi1X6 UyLuKk0ltLo1vTc4voKRbwPmbcEEXjO98/tmOGWw8Qk2OrAmnw5tqwbPW03GiPjxyzDQZl rX4YNp4xRZqOOuijUtnQIb33PdnIbkMyYA0PY3Sry+tRfkKtAVOnfGEyINk9P2/fXVxuPt LcCwlECAqdwcvosPw0GKxYvo/p4urQnldrLkZ8Vp34YIpC9lXL/4hFtbxvkkgQ== 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 B2431843F2 for ; Thu, 03 Oct 2024 14:42:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swL9d-0008RC-QN; Thu, 03 Oct 2024 08:42:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1swL9c-0008Qx-9n for guix-patches@gnu.org; Thu, 03 Oct 2024 08:42:00 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1swL9c-0001mX-0u for guix-patches@gnu.org; Thu, 03 Oct 2024 08:42:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=wOVsxgJ08dLMpp4dJlW74n+8RhIzlytVrftSJQ9f7EY=; b=sck9yEVZpXzYAruZ1TBMwc9Cwo2GokuGTqyeE9vACIFI2K48gmYbG7eNhrhCtqf1nbUkLCBUbPm0Y+HhJPaJrHrzSKlPwhrJ0h2aZojncTUnhTYB/BVF9wkLMd6YWDtKqR2MSF5Q6HQPbZsEWOF0T9q7O/ZgeEYFk+SO+VTjfsYaCG93astpsiN+mStZjD0txY9Q5Gd9+/q1hQn9B8y7BJwhTz4iFHekHGuVw74t2hZpaSdVDZ1KWFQN3lVotLlRrLJPLIxTiAreh8Iha9dW2ZCAhUl07qEFd6Q6P1HGoZx2dJ7XD78MLbICLcgIg4tXnVrFQPbZxgZkSPZphyWC7Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1swL9d-0001Nb-Of for guix-patches@gnu.org; Thu, 03 Oct 2024 08:42:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72714] [PATCH] home: services: Add 'home-sway-service-type'. Resent-From: "pelzflorian (Florian Pelz)" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Oct 2024 12:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72714 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Arnaud Daby-Seesaram Cc: Hilton Chain , Ludovic =?UTF-8?Q?Court=C3=A8s?= , 72714@debbugs.gnu.org Received: via spool by 72714-submit@debbugs.gnu.org id=B72714.17279593165290 (code B ref 72714); Thu, 03 Oct 2024 12:42:01 +0000 Received: (at 72714) by debbugs.gnu.org; 3 Oct 2024 12:41:56 +0000 Received: from localhost ([127.0.0.1]:60268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swL9Y-0001NG-0e for submit@debbugs.gnu.org; Thu, 03 Oct 2024 08:41:56 -0400 Received: from relay.yourmailgateway.de ([185.244.194.184]:33581) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swL9V-0001N5-NU for 72714@debbugs.gnu.org; Thu, 03 Oct 2024 08:41:54 -0400 Received: from relay01-mors.netcup.net (localhost [127.0.0.1]) by relay01-mors.netcup.net (Postfix) with ESMTPS id 4XKBBk0dYFz8y5l; Thu, 3 Oct 2024 14:41:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1727959310; bh=o4ViMtY1XJBj0j2bfBotqSDpkqiUcXMwlGpSZdzzS0k=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=TEVFxPCzYhuKVemaNSBV+JPokCOoXdfJapRjZxDCnsQ2cdFDSP+dQkyOmjEh41DLX uBX1mRgkPFqagpHPYDCuiYyWZpBE2WzrWH/6xmldjcRtFGwGJe7TnyurIUGCedTYB4 fhwCwwliHzbNBQJYWjsAY/i++LIAs8IdPEf2omdZT0Cws/L13P+Z7jRjgLvlj5LUQT t62l4AT+YjQHLN8kVJUKHGmpZ/eN4IeSCTv5my/Sur56KT2EB0q6yYeYKqtzenLrrM iJlgx4I+CTA6UT4N3wkHkqoXiOIQT7Qtcu90x+KZ0BheOnxs989SBCnj7Vpf8/zqbZ yTdAk8aVc9TYg== Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by relay01-mors.netcup.net (Postfix) with ESMTPS id 4XKBBj74d7z7wGB; Thu, 3 Oct 2024 14:41:49 +0200 (CEST) Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy02-mors.netcup.net (Postfix) with ESMTPS id 4XKBBh3c2jz8sb3; Thu, 3 Oct 2024 14:41:47 +0200 (CEST) Received: from florianhp (ipb2186896.dynamic.kabel-deutschland.de [178.24.104.150]) by mxe217.netcup.net (Postfix) with ESMTPSA id E39EA824B7; Thu, 3 Oct 2024 14:41:39 +0200 (CEST) From: "pelzflorian (Florian Pelz)" In-Reply-To: <87ttdu9qmo.fsf@nanein.fr> (Arnaud Daby-Seesaram's message of "Wed, 02 Oct 2024 22:49:51 +0200") References: <87zfno52ig.fsf@gnu.org> <20241001221313.2490-1-ds-ac@nanein.fr> <878qv6tx5i.fsf@pelzflorian.de> <87ttdu9qmo.fsf@nanein.fr> Date: Thu, 03 Oct 2024 14:41:48 +0200 Message-ID: <875xq9we7n.fsf@pelzflorian.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: E39EA824B7 X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: tpvTsPe77r5yhyFEx4Y8zO6YfBa2yUZdu1F3RA2pcLyAusBISEk+W5Fu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -2.06 X-Spam-Score: -2.06 X-Migadu-Queue-Id: B2431843F2 X-TUID: i2VtGv0YYTNS Hello Arnaud. Arnaud Daby-Seesaram writes: > "pelzflorian (Florian Pelz)" writes: >> Perhaps for more hackability, we could deviate from upstream and put in >> a call to guile with a Scheme script in a computed-file that opens a >> pipe to/from wmenu and does the same as dmenu_path without cache only on >> ~/.guix-home/profile/bin. > > Yes indeed. Do you think that the Guile script should replace all of > "$menu", or just the dmenu_path part? > All of "$menu", because it looks nicer? But I should not imply that such deviation from upstream were necessary for getting your patch in. Basically my issue was that dmenu_path did not work. Indeed stest is part of the dmenu package, so when dmenu is installed to the profile, dmenu_path would work. So a more upstream conformant solution would be to just add the dmenu package to sway=E2=80=99s packages. However, dmenu_path=E2=80=99s cache means that if we used dmenu_path like upstream, it would never recognize changes to the installed packages. OpenBSD opted for wmenu_path which is like dmenu_path without cache and a guile script seems more appropriate for Guix=E2=80=99 defaults. > On this topic, do you know if there is a built-in way to write > `find=C2=A0-maxdepth 1 ...' in Guile (without calling `readdir' manually)? scandir from the (ice-9 ftw) module, I think. >> only on ~/.guix-home/profile/bin. > > What is the rationale for restricting the menu to this directory (and > not all directories in > (filter directory-exists? (string-split (getenv "PATH") #\:)) > ? > All my graphical applications are in the home profile and non-graphical programs will not be used and clutter wmenu. Do others put graphical apps in the system profile? Perhaps so. But then non-graphical coreutils would be in the wmenu as well. Hmm I am not sure and would be fine with either. >> Or change the dmenu_path program with `substitute' to use the absolute >> file-name of stest. > > I think that the Guile script might be simpler. > > By `substitute', do you mean in the package definition? Yes, the dmenu package definition. > This does not > seem necessary, as people installing dmenu have stest in their profile. > If dmenu were installed in the sway-packages, substitute would not be neede= d. > Do you want me to send a v8 with the above fixes, or should I wait until > we change the content of the "$menu" variable? It can wait. Regards, Florian