Message ID | 87setzr7ea.fsf_-_@antr.me |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C4A7627BBEA; Mon, 16 Sep 2024 15:39:07 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 40FE027BBE9 for <patchwork@mira.cbaines.net>; Mon, 16 Sep 2024 15:39:07 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1sqCsN-0005AG-Hk; Mon, 16 Sep 2024 10:38:51 -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 <Debian-debbugs@debbugs.gnu.org>) id 1sqCsL-000523-Js for guix-patches@gnu.org; Mon, 16 Sep 2024 10:38:49 -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 <Debian-debbugs@debbugs.gnu.org>) id 1sqCsL-0000mA-Aq for guix-patches@gnu.org; Mon, 16 Sep 2024 10:38:49 -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=eP4K4HaNN5rSb/HNMu/sGg7puct3tmzTZbr9MfAOqxo=; b=JXDaud6ZaLXu+k2e8turVKN6C6DXNMalgI9JVB0bOoPgiYlNOROAU5OAXqX1yOZvqBiqAP9y2RguHw48AMaUg22E/JedAATun03b3h74enAm8ud5BM+/dlzX9Tp4PzhXDROJlt9UoxsOwUqb6YS2paqFc0wCEg9Tq9tTP/ZQR8BrHKtKp47EE55US0NqRsfanFL9JD6n1WPJw8mFufi1sQ1dpPj1jymW8h0WkYsi49TbUuT5mhZ+3K3iSI1pC446ozMQ7QT/fai19Q1uqDBxUBDPYSRIzdbd1eB44W/oZNOrJCCApsE5hUq1as+AYnGfEqI428WjqfbPTYK7mOt1Ug==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1sqCsY-0003tX-CD for guix-patches@gnu.org; Mon, 16 Sep 2024 10:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73296] [PATCH v2] home: services: dbus: Add utilities to profile. Resent-From: Antero Mejr <mail@antr.me> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 16 Sep 2024 14:39:02 +0000 Resent-Message-ID: <handler.73296.B73296.172649751714926@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73296 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73296@debbugs.gnu.org Cc: paren@disroot.org, ludo@gnu.org, tanguy@bioneland.org, andrew@trop.in Received: via spool by 73296-submit@debbugs.gnu.org id=B73296.172649751714926 (code B ref 73296); Mon, 16 Sep 2024 14:39:02 +0000 Received: (at 73296) by debbugs.gnu.org; 16 Sep 2024 14:38:37 +0000 Received: from localhost ([127.0.0.1]:53019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1sqCs9-0003sg-5w for submit@debbugs.gnu.org; Mon, 16 Sep 2024 10:38:37 -0400 Received: from smtp.forwardemail.net ([207.246.76.47]:21243) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <SRS0=4762=QP=antr.me=mail@fe-bounces.antr.me>) id 1sqCs7-0003sR-Fd for 73296@debbugs.gnu.org; Mon, 16 Sep 2024 10:38:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antr.me; h=Content-Type: MIME-Version: Message-ID: Date: References: In-Reply-To: Subject: Cc: To: From; q=dns/txt; s=fe-d5cf982890; t=1726497489; bh=eP4K4HaNN5rSb/HNMu/sGg7puct3tmzTZbr9MfAOqxo=; b=e2OmccCV4VRBPCPEl7qqzcInKrpva0PzUhXfsBqjlrvzlLpDuGAUMMY5YpoPtVnU8tl7h85Ai d6rmjYZm3Ft1MHgwL/U3Vxws/yan6TLLDlvrNRFgbZSOSNlvEJzRg+fWQ4+hr3dDeZUORhEgndc Esg7vdV7iceAdZhdNkD0PwI= In-Reply-To: <handler.73296.B.172649665311867.ack@debbugs.gnu.org> (GNU bug Tracking System's message of "Mon, 16 Sep 2024 14:25:02 +0000") References: <87zfo7r828.fsf@antr.me> <handler.73296.B.172649665311867.ack@debbugs.gnu.org> Date: Mon, 16 Sep 2024 14:38:05 +0000 Message-ID: <87setzr7ea.fsf_-_@antr.me> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; mail@antr.me, smtp.forwardemail.net, 207.246.76.47 X-ForwardEmail-ID: 66e842d0d1181a3e5884cc1b X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Reply-to: Antero Mejr <mail@antr.me> X-ACL-Warn: , Antero Mejr via Guix-patches <guix-patches@gnu.org> From: Antero Mejr via Guix-patches via <guix-patches@gnu.org> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#73296,v2] home: services: dbus: Add utilities to profile.
|
|
Commit Message
Antero Mejr
Sept. 16, 2024, 2:38 p.m. UTC
* gnu/home/services/desktop.scm (home-dbus-service-type)[extensions]: Extend home-profile-service-type to add dbus-launch and other such utilities to the home profile. Change-Id: I9a3dc00d52b66c327f4eae523bddf758bddddb9e --- Please ignore the last patch, it had a typo in the commit message. gnu/home/services/desktop.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) base-commit: ecc95ecd399ce7917a19ae3e687ea1a92caf830a
Comments
Hello, Antero Mejr <mail@antr.me> skribis: > * gnu/home/services/desktop.scm (home-dbus-service-type)[extensions]: > Extend home-profile-service-type to add dbus-launch and other such > utilities to the home profile. > > Change-Id: I9a3dc00d52b66c327f4eae523bddf758bddddb9e I must say I don’t fully understand the use case of ‘home-dbus-service-type’ since usually the user’s dbus session is started automatically, on demand (for example, spawning pulseaudio will automatically start a dbus session if it’s not already running). Often I find that for such services we don’t necessarily want to “clutter” the user’s profile with low-level tools such as ‘dbus-launch’ in this case. But I’m not sure here. Could you explain? What’s the point of ‘home-dbus-service-type’? :-) Thanks, Ludo’.
Hello! Ludovic Courtès <ludo@gnu.org> writes: > Antero Mejr <mail@antr.me> skribis: > >> * gnu/home/services/desktop.scm (home-dbus-service-type)[extensions]: >> Extend home-profile-service-type to add dbus-launch and other such >> utilities to the home profile. >> >> Change-Id: I9a3dc00d52b66c327f4eae523bddf758bddddb9e > > I must say I don’t fully understand the use case of > ‘home-dbus-service-type’ since usually the user’s dbus session is > started automatically, on demand (for example, spawning pulseaudio will > automatically start a dbus session if it’s not already running). > > Often I find that for such services we don’t necessarily want to > “clutter” the user’s profile with low-level tools such as ‘dbus-launch’ > in this case. But I’m not sure here. > > Could you explain? What’s the point of ‘home-dbus-service-type’? :-) This is an interesting question that you are asking. For me, and the first two years with Guix, I never had a proper running dbus session when running, first with i3, and then with sway from there on. It would work with GNOME. But I'd never hang around there for long and I learned to live without dbus that would produce strange effects in strange situations. It only happened after I migrated to Guix Home and enabling home-dbus-service-type that I finally had a fully functioning environment with dbus. It solved so many problems since and I never fully understood why I was missing dbus in the first place. It either never either launched properly -- which I doubt, since applications like pulseaudio where running --, or I had never sourced some variables properly. To answer your question: This service is quite the requirement to have a desktop environment that is not based on the bigger variants that usually provide it. Kind regards
Hi, Simon Streit <simon@netpanic.org> skribis: >> Could you explain? What’s the point of ‘home-dbus-service-type’? :-) > > This is an interesting question that you are asking. For me, and the > first two years with Guix, I never had a proper running dbus session > when running, first with i3, and then with sway from there on. It would > work with GNOME. But I'd never hang around there for long and I learned > to live without dbus that would produce strange effects in strange > situations. > > It only happened after I migrated to Guix Home and enabling > home-dbus-service-type that I finally had a fully functioning > environment with dbus. It solved so many problems since and I never > fully understood why I was missing dbus in the first place. It either > never either launched properly -- which I doubt, since applications like > pulseaudio where running --, or I had never sourced some variables > properly. > > To answer your question: This service is quite the requirement to have a > desktop environment that is not based on the bigger variants that > usually provide it. OK, interesting. I’m not using it and not noticing problems (or did I get used to the D-Bus class of problems?). Thanks for your reply, Ludo’.
diff --git a/gnu/home/services/desktop.scm b/gnu/home/services/desktop.scm index 679ba31c0f..6d8ac275ca 100644 --- a/gnu/home/services/desktop.scm +++ b/gnu/home/services/desktop.scm @@ -327,7 +327,10 @@ (define home-dbus-service-type (list (service-extension home-shepherd-service-type home-dbus-shepherd-services) (service-extension home-environment-variables-service-type - home-dbus-environment-variables))) + home-dbus-environment-variables) + (service-extension home-profile-service-type + (lambda (config) + (list (home-dbus-dbus config)))))) (default-value (home-dbus-configuration)) (description "Run the session-specific D-Bus inter-process message bus.")))