Developer setups for user D-Bus service files?

David Edmundson david at davidedmundson.co.uk
Wed Jan 12 10:49:26 GMT 2022


> This triggered yet another idea with me, and I came across
> https://www.freedesktop.org/software/systemd/man/environment.d.html
> upon which I tried to add a file
> /home/mydevuser/.config/environment.d/60-test.conf
> with the content
> --- 8< ---
> XDG_DATA_DIRS=/home/mydevuser/my/share::${XDG_DATA_DIRS:-/usr/local/share/:/
> usr/share/}
> --- 8< ---
> logged into a new session et voilĂ , the session D-Bus now sees my D-Bus
> service files and starts the services as expected.
>

The equivalent for non-systemd people is to setup `pam_env` with user
env turned on to do the same thing at roughly the same time.
The drawback is you're always affecting that user, it's not on a per
login basis, which works for you, but not everyone.

David


More information about the kde-devel mailing list