all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Roman Riabenko via <help-guix@gnu.org>
To: help-guix@gnu.org
Subject: Re: D-Bus service files on foreign distributions
Date: Thu, 12 Sep 2024 22:54:47 +0300	[thread overview]
Message-ID: <b70e2201ca0c6e0d128ae4ec62513dd2373c60ea.camel@riabenko.com> (raw)
In-Reply-To: <1883395578.670871.1726139597698@office.mailbox.org>

[-- Attachment #1: Type: text/plain, Size: 2175 bytes --]

У чт, 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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2024-09-12 19:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-25 11:08 D-Bus service files on foreign distributions Roman Riabenko via
2024-08-26  8:27 ` Nils Landt
2024-09-11 18:57   ` Roman Riabenko via
2024-09-12 11:13     ` Nils Landt
2024-09-12 19:54       ` Roman Riabenko via [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b70e2201ca0c6e0d128ae4ec62513dd2373c60ea.camel@riabenko.com \
    --to=help-guix@gnu.org \
    --cc=roman@riabenko.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.