Comment 16 for bug 1720250

Revision history for this message
Iain Lane (laney) wrote :

ok, I had a look at the unit

  - basic.target is quite basic, it happens for every user session. If the first session is a SSH login then we'll execute im-config when we probably shouldn't.
  - PartOf=graphical.target will be necessary when we get back to launching the UI under systemd (hopefully in 18.04), please don't drop it
  - Maybe this isn't a problem with basic.target, but it will be when we use graphical-session-pre.target - type=oneshot will mean that this is executed on every login
  - Same, maybe ok with basic.target --- there's no way to clear the variables and they won't be scoped to there being a graphical session (existing bug with the unit?)

Thought - what about putting a script in /etc/profile.d? basically doing what the unit would do, but make sure to case it on $XDG_CURRENT_DESKTOP being nonempty or something, so it doesn't run for shell logins.