GNU bug report logs - #73296
[PATCH] home: services: dbus: Add utilities to profile.

Previous Next

Package: guix-patches;

Reported by: Antero Mejr <mail <at> antr.me>

Date: Mon, 16 Sep 2024 14:25:01 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 73296 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#73296; Package guix-patches. (Mon, 16 Sep 2024 14:25:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Antero Mejr <mail <at> antr.me>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 16 Sep 2024 14:25:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Antero Mejr <mail <at> antr.me>
To: guix-patches <at> gnu.org
Cc: paren <at> disroot.org, ludo <at> gnu.org, tanguy <at> bioneland.org, andrew <at> trop.in
Subject: [PATCH] home: services: dbus: Add utilities to profile.
Date: Mon, 16 Sep 2024 14:23:43 +0000
* gnu/home/services/sound.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
---
 gnu/home/services/desktop.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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.")))

base-commit: ecc95ecd399ce7917a19ae3e687ea1a92caf830a
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#73296; Package guix-patches. (Mon, 16 Sep 2024 14:39:02 GMT) Full text and rfc822 format available.

Message #8 received at 73296 <at> debbugs.gnu.org (full text, mbox):

From: Antero Mejr <mail <at> antr.me>
To: 73296 <at> debbugs.gnu.org
Cc: paren <at> disroot.org, ludo <at> gnu.org, tanguy <at> bioneland.org, andrew <at> trop.in
Subject: [PATCH v2] home: services: dbus: Add utilities to profile.
Date: Mon, 16 Sep 2024 14:38:05 +0000
* 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(-)

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.")))

base-commit: ecc95ecd399ce7917a19ae3e687ea1a92caf830a
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#73296; Package guix-patches. (Mon, 30 Sep 2024 20:16:03 GMT) Full text and rfc822 format available.

Message #11 received at 73296 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Antero Mejr <mail <at> antr.me>
Cc: paren <at> disroot.org, 73296 <at> debbugs.gnu.org, tanguy <at> bioneland.org,
 andrew <at> trop.in
Subject: Re: [bug#73296] [PATCH v2] home: services: dbus: Add utilities to
 profile.
Date: Mon, 30 Sep 2024 22:15:05 +0200
Hello,

Antero Mejr <mail <at> 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’.




Information forwarded to guix-patches <at> gnu.org:
bug#73296; Package guix-patches. (Tue, 01 Oct 2024 22:03:02 GMT) Full text and rfc822 format available.

Message #14 received at 73296 <at> debbugs.gnu.org (full text, mbox):

From: Simon Streit <simon <at> netpanic.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Antero Mejr <mail <at> antr.me>, paren <at> disroot.org, 73296 <at> debbugs.gnu.org,
 tanguy <at> bioneland.org, andrew <at> trop.in
Subject: Re: [bug#73296] [PATCH v2] home: services: dbus: Add utilities to
 profile.
Date: Wed, 02 Oct 2024 00:02:41 +0200
Hello!

Ludovic Courtès <ludo <at> gnu.org> writes:

> Antero Mejr <mail <at> 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

-- 
Simon




Information forwarded to guix-patches <at> gnu.org:
bug#73296; Package guix-patches. (Sun, 17 Nov 2024 22:06:02 GMT) Full text and rfc822 format available.

Message #17 received at 73296 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Simon Streit <simon <at> netpanic.org>
Cc: Antero Mejr <mail <at> antr.me>, paren <at> disroot.org, 73296 <at> debbugs.gnu.org,
 tanguy <at> bioneland.org, andrew <at> trop.in
Subject: Re: [bug#73296] [PATCH v2] home: services: dbus: Add utilities to
 profile.
Date: Sun, 17 Nov 2024 23:05:32 +0100
Hi,

Simon Streit <simon <at> 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’.




This bug report was last modified 207 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.