Hi! Liliana Marie Prikler <liliana.prik...@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’.