[PATCH] gnu: Fix dbus session address in home-dbus-shepherd-services and home-dbus-environment-variables

  • Open
  • quality assurance status badge
Details
4 participants
  • Sughosha
  • Christopher Baines
  • Maxim Cournoyer
  • (
Owner
unassigned
Submitted by
Sughosha
Severity
normal
S
S
Sughosha wrote on 17 Oct 2022 13:43
(name . guix-patches@gnu.org)(address . guix-patches@gnu.org)
6B8PVUNJFWE65EEQjuqmH-PLzud7XaJZQ7M1VWklTB4FboCffQez3Tn0H5rLpEcwBJk-4o7StU9b2r0QbN3OHfR_KephR_IZ21vFdd50xjc=@proton.me
* gnu/home/services/desktop.scm
(home-dbus-shepherd-services): Fix dbus session address.
(home-dbus-environment-variables): Fix dbus session address.

Currently if home-dbus-service-type is enabled, the GDM session crashes. This
fix should possibly prevent it. However, I could not test it since reconfiguring
guix home with pre-inst-env doesn't make any change and I don't know any other
method.
---
gnu/home/services/desktop.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (24 lines)
diff --git a/gnu/home/services/desktop.scm b/gnu/home/services/desktop.scm
index e94e666d93..91e39af36c 100644
--- a/gnu/home/services/desktop.scm
+++ b/gnu/home/services/desktop.scm
@@ -196,7 +196,7 @@ (define (home-dbus-shepherd-services config)
(list #$(file-append (home-dbus-dbus config)
"/bin/dbus-daemon")
"--nofork" "--session"
- (format #f "--address=unix:path=~a/bus"
+ (format #f "--address=unix:path=~a/dbus.lock"
(or (getenv "XDG_RUNTIME_DIR")
(format #f "/run/user/~a"
(getuid)))))
@@ -211,7 +211,7 @@ (define (home-dbus-shepherd-services config)
(define (home-dbus-environment-variables config)
'(("DBUS_SESSION_BUS_ADDRESS"
- . "unix:path=${XDG_RUNTIME_DIR:-/run/user/$UID}/bus")))
+ . "unix:path=${XDG_RUNTIME_DIR:-/run/user/$UID}/dbus.lock")))
(define home-dbus-service-type
(service-type
--
2.38.0
(
CNO6CEM9GTCE.207GW38OK6BRK@guix-framework
Hello,

On Mon Oct 17, 2022 at 12:43 PM BST, Sughosha via Guix-patches via wrote:
Toggle quote (2 lines)
> Currently if home-dbus-service-type is enabled, the GDM session crashes.

Oopsie. :)

Toggle quote (3 lines)
> However, I could not test it since reconfiguring guix home with pre-inst-env
> doesn't make any change and I don't know any other method.

``./pre-inst-env guix home reconfigure ~/conf/home.scm'' works for me... I'll
test it, one moment :)

-- (
C
C
Christopher Baines wrote on 3 Nov 2022 17:11
tag 58582 moreinfo
(address . control@debbugs.gnu.org)
87fsf0j9wb.fsf@cbaines.net
tags 58582 + moreinfo
quit
M
M
Maxim Cournoyer wrote on 3 Jan 23:15 +0100
Re: bug#58582: [PATCH] gnu: Fix dbus session address in home-dbus-shepherd-services and home-dbus-environment-variables
(name . ()(address . paren@disroot.org)
87k023z2ma.fsf_-_@gmail.com
Hello,

"(" <paren@disroot.org> writes:

Toggle quote (13 lines)
> Hello,
>
> On Mon Oct 17, 2022 at 12:43 PM BST, Sughosha via Guix-patches via wrote:
>> Currently if home-dbus-service-type is enabled, the GDM session crashes.
>
> Oopsie. :)
>
>> However, I could not test it since reconfiguring guix home with pre-inst-env
>> doesn't make any change and I don't know any other method.
>
> ``./pre-inst-env guix home reconfigure ~/conf/home.scm'' works for me... I'll
> test it, one moment :)

Friendly ping :-)

--
Thanks,
Maxim
S
S
Sughosha wrote on 4 Jan 00:53 +0100
(name . 58582@debbugs.gnu.org)(address . 58582@debbugs.gnu.org)
lWQCWjcchbJLkHtRrJaE6tewaOtZZi1YuKGjUh8g1CRqJbc_2aWqsquJwGBZxaeFAcl-pcF3lyaDIWHJb7vBzyn60qAPVqIlmEVCXgdKnuQ=@proton.me
I am not sure what had caused the problem, but now I don't have this problem anymore.

tags 58582 notabug
close 58582
quit
?