13 septembre 2022 20:33 "Axel Beckert" <a...@debian.org> a écrit
> Didier 'OdyX' Raboud wrote:
>> https://bugs.debian.org/855868 suggests that a similar script as
>> present in /etc/Xsession.d should be placed in
>> /usr/lib/systemd/user-environment-generators/ for systemd/wayland
>> systems to benefit from unburden-home-dir.
> 
> So this is only needed in the combination of Wayland AND systemd? That
> kinda sounds weird.

My understanding is rather "Wayland does not use Xsession.d, and systemd
provides an alternative to this Xsession.d mechanism that would run on these
systems. I have not found a Wayland-specific way.

>> As a temporary local configuration, I've done this;
>> 
>> # mkdir -p /etc/systemd/user-environment-generators/
>> # cp /etc/X11/Xsession.d/95unburden-home-dir 
>> /etc/systemd/user-environment-generators/
> 
> Thanks for that tip. Is there a reason why you've copied it instead of
> e.g. a symlink?

Quick test only, good point. Of course I forgot to chmod +x. But it
didn't work :-(

Re-reading the doc, it seems that doing this would be an abuse of that
user-environment-generators mechanism.

The "right" systemd mechanism seems to be a Type=oneshot
/lib/systemd/user/*.service with a Slice=session.slice.

>> Will report back if that helps.

It did not :-). I'll try with a user service and report again. If it
works I'll propose a patch.

Best,
OdyX

Reply via email to