[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proof of concept: Shepherd + DBus = ♥
From: |
Ludovic Courtès |
Subject: |
Re: Proof of concept: Shepherd + DBus = ♥ |
Date: |
Mon, 06 Mar 2023 18:28:45 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Hi!
Liliana Marie Prikler <liliana.prikler@gmail.com> skribis:
[...]
>> > If you were naughty and didn't do the magic dance, you get a rather
>> > unhelpful result instead.
>> >
>> > $ herd getenv gnome PATH
>> >
>> > ;;; (reply #f "")
>>
>> This is super cool and super useful. 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) – note the DBus method signature in
> brackets. As far as I'm aware, there is currently no such public API.
Maybe it’s 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.
Yes!
Ludo’.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Proof of concept: Shepherd + DBus = ♥,
Ludovic Courtès <=