help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D-Bus service files on foreign distributions


From: Roman Riabenko
Subject: Re: D-Bus service files on foreign distributions
Date: Thu, 12 Sep 2024 22:54:47 +0300
User-agent: Evolution 3.38.3-1+deb11u2

У чт, 2024-09-12 у 13:13 +0200, Nils Landt пише:
> 
> > Roman Riabenko via <help-guix@gnu.org> hat am 11.09.2024 20:57 CEST
> > geschrieben:
> > 
> > У пн, 2024-08-26 у 10:27 +0200, Nils Landt пише:
> > > > Roman Riabenko via <help-guix@gnu.org> hat am 25.08.2024 13:08
> > > > CEST
> > > > geschrieben:
> > > > 
> > > > How to expose service files to D-Bus on a foreign distribution?
> 
> DefaultEnvironment does nothing here. Processes spawned by the user
> manager inherit the environment variables from the user manager.
> 
> > $ cat /etc/systemd/user.conf | grep DefaultEnvironment
> > DefaultEnvironment="XDG_DATA_DIRS=%h/.guix-profile/share"
> 
> Looking at the purism docs (
> https://software.pureos.net/package/src/pureos/byzantium/systemd),
> systemd is version 247. But %h expansion in user config is only
> available since systemd 256.1 (
> https://github.com/systemd/systemd/pull/26675).
> So maybe you can try explicitly specifying the path here.
> I don't think it will help, but it's something :)

I tried specifying the full path for DefaultEnvironment in
/etc/systemd/user.conf but was unable to login with it too. Setting
ManagerEnvironment there was ignored.

$ systemd --version
/etc/systemd/user.conf:31: Unknown key name 'ManagerEnvironment' in
section 'Manager', ignoring.
systemd 247 (247.3-7+deb11u6)
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP
+LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID
+ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified

> BUT! While I was writing this, I noticed that ManagerEnvironment
> itself was added in version 248! So if you're really on 247, it can't
> work.

You are right!

The local manual page for systemd-system.conf does not have the
ManagerEnvironment option either.

> In this case, I suggest you try a drop-in file for the dbus, e.g.:
> systemctl --user edit dbus
> (add the following two lines as only uncommented ones):
> [Service]
> Environment="XDG_DATA_DIRS=/home/purism/.guix-profile/share"

Thank you! Now I can launch all applications from the icons grid as
expected so far.

Roman

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]