<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Feb 26, 2017 at 11:10 PM, Patrick Schleizer <span dir="ltr"><<a href="mailto:patrick-mailinglists@whonix.org" target="_blank">patrick-mailinglists@whonix.<wbr>org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Being on Debian stretch (Qubes). The display manager there does not yet<br>
get started by systemd --user.<br>
<br>
I find it useful to convert /etc/xdg/autostart/app.desktop files to<br>
systemd --user unit files.<br>
<br>
Therefore the environment variables have to be sorted out. On any Linux<br>
we would have to set at least DISPLAY as well as XAUTHORITY.<br>
<br>
On Qubes however, we need a few more environment variables. We need also<br>
QT_X11_NO_MITSHM=1 and may need a few others ones.<br>
<br>
Now, before I go through them manually and then have this break in<br>
future when more/different environment variables are needed...<br>
<br>
Is there a way to have the systemd --user session share the same<br>
variables as the X server? Writing a parser for /etc/X11/Xsession.d/<br>
seems wrong. Am I missing some tool to do that?<br>
<br>
Would I add something like this?<br>
<br>
ExecStartPre=dbus-update-activ<wbr>ation-environment --systemd --all<br></blockquote><div><br></div><div><div>Those don't sound like X server variables – they're X *client* variables, aren't they?</div></div><div><br></div><div>If you're in charge of the distro, and if the variables are fairly static,</div><div>a) set them via the pam_env PAM module (i.e. /etc/environment),</div><div>or b) set them with Environment= in "user@.service".</div><div><br></div><div>That said, in many distributions Xsession already calls `dbus-update-activation-<wbr>environment…` right after having sourced all the Xsession.d scripts.</div><div><br></div></div>-- <br><div class="m_-2364103832971598640gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>