From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QDDoBgQjBmQQMAAASxT56A (envelope-from ) for ; Mon, 06 Mar 2023 18:29:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SIwWBgQjBmR43wAAG6o9tA (envelope-from ) for ; Mon, 06 Mar 2023 18:29:40 +0100 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 EA1133218B for ; Mon, 6 Mar 2023 18:29:39 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZEdm-00053L-Sl; Mon, 06 Mar 2023 12:28:50 -0500 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 1pZEdk-00052f-BN for guix-devel@gnu.org; Mon, 06 Mar 2023 12:28:49 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZEdk-0001bc-2x; Mon, 06 Mar 2023 12:28:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=c7YThRL9WSkWSO33IgObTA0VEJ7Yd+0AHcP3iJYEZCI=; b=W2JkBj6UtWe3EpeX6UYJ t8TKaD/TNrEcje6ES99s+ba6WmTuyHXfbco+pbr8Qi23CWCDKya5PNRBKd8hAk9lKya8LnoIiVRsd y6ID+fAk+hXTd6iYXYEJ2oXAc+CvNumzj6F/7semNzfklPiZflA3US3CdqaY/gc4sAbHi5vqEf8Qo 1R9YoTCVrSCK81yHJdqdhmPZTtnR0XEXcZoEii0+3xEFHCY2rqCi9l9Bvyv942T24JgcR7HyZtyTM 01DGZtiKOi1vudCV4kJSxrXxVmnDIxYa4g3l96pUckjr7p+ymTe5rVDwHihPEELiUxJtIBxUqvytr FgeSQm7cOgVHIg==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZEdj-0004If-Ks; Mon, 06 Mar 2023 12:28:47 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Liliana Marie Prikler Cc: guix-devel@gnu.org Subject: Re: Proof of concept: Shepherd + DBus = =?utf-8?Q?=E2=99=A5?= References: <87h6v9vbdl.fsf@gnu.org> <7e1f52a58efd486263665e4346fa04fd4a01cae7.camel@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Sextidi 16 =?utf-8?Q?Vent=C3=B4se?= an 231 de la =?utf-8?Q?R=C3=A9volution=2C?= jour de =?utf-8?Q?l'=C3=89pinard?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 06 Mar 2023 18:28:45 +0100 In-Reply-To: <7e1f52a58efd486263665e4346fa04fd4a01cae7.camel@gmail.com> (Liliana Marie Prikler's message of "Sat, 25 Feb 2023 20:34:09 +0100") Message-ID: <87v8jd7prm.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-TUID: oUzNy4uwu30E Hi! Liliana Marie Prikler skribis: [...] >> > If you were naughty and didn't do the magic dance, you get a rather >> > unhelpful result instead. >> >=20 >> > $ herd getenv gnome PATH=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=20 >> >=20 >> > ;;; (reply #f "") >>=20 >> This is super cool and super useful.=C2=A0 Is there some way we could >> achieve this (getenv/setenv in the GNOME Shell process) without >> resorting to JS? > Well, we could patch the Gnome Shell DBus API to expose getenv(s), > setenv(ss) and unsetenv(s) =E2=80=93 note the DBus method signature in > brackets. As far as I'm aware, there is currently no such public API. Maybe it=E2=80=99s worth trying. We could always submit that upstream. >> Provided suitable Fibers integration, we could have services that >> automatically start/stop based on some notification received on the >> bus (devices plugged/unplugged, power or network condition changes, >> etc.). > Even better, we could (at some time) go full systemd and take control > over all services spawned via DBus.=20 Yes! Ludo=E2=80=99.