Systemd graphical-session.target ist dead/inactive

Ursprünglich wollte ich einen Systemd-User-Service erstellen mit

[Install]
WantedBy=graphical-session.target

Allerdings ist bei meinem aktuell genutzten Userprofil das entsprechende Target inactive/dead und ich finde einfach nicht heraus, wieso das so ist.

Aktueller User:

systemctl --user list-units --type=target -all                                                                                                                                                                                                                                                              
  UNIT                                                                                LOAD      ACTIVE   SUB    DESCRIPTION                                                                        
  basic.target                                                                        loaded    active   active Basic System
  default.target                                                                      loaded    active   active Main User Target
  graphical-session-pre.target                                                        loaded    inactive dead   Session services which should run early before the graphical session is brought up
  graphical-session.target                                                            loaded    inactive dead   Current graphical user session
  paths.target                                                                        loaded    active   active Paths
  plasma-core.target                                                                  loaded    inactive dead   KDE Plasma Workspace Core
  shutdown.target                                                                     loaded    inactive dead   Shutdown
  sockets.target                                                                      loaded    active   active Sockets
  sound.target                                                                        loaded    inactive dead   Sound Card
  timers.target                                                                       loaded    active   active Timers

Testweise mal einen neuen User erstellt, wo das gewünschte Target automatisch aktiv ist und per Default auch noch einige weitere Targets (plasma-workspace*,xdg-desktop-autostart) vorhanden/aktiv sind:

systemctl --user list-units --type=target --all                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ✔
  UNIT                                                                                LOAD      ACTIVE   SUB    DESCRIPTION
  basic.target                                                                        loaded    active   active Basic System
  default.target                                                                      loaded    active   active Main User Target
  graphical-session-pre.target                                                        loaded    active   active Session services which should run early before the graphical session is brought up
  graphical-session.target                                                            loaded    active   active Current graphical user session
  paths.target                                                                        loaded    active   active Paths
  plasma-core.target                                                                  loaded    active   active KDE Plasma Workspace Core
  plasma-workspace-x11.target                                                         loaded    active   active plasma-workspace-x11.target
  plasma-workspace.target                                                             loaded    active   active KDE Plasma Workspace
  shutdown.target                                                                     loaded    inactive dead   Shutdown
  sockets.target                                                                      loaded    active   active Sockets
  sound.target                                                                        loaded    inactive dead   Sound Card
  timers.target                                                                       loaded    active   active Timers
  xdg-desktop-autostart.target                                                        loaded    active   active Startup of XDG autostart applications

~/.config/systemd ist leer. Ich habe die vorhanden Konfigurationsdateien vom neuen Testuser gegen meinen als Diff laufen lassen, um mögliche Unterschiede herauszufinden. Ich konnte aber nichts Relevantes finden.

Wo könnten noch weitere Stellen sein, wo auf diese Konfiguration Einfluss genommen wird? Wie könnte ich das weiter eingrenzen?

$ man systemctl
[...]
get-default
     Return the default target to boot into. This returns the target unit name default.target is aliased
     (symlinked) to.

     Added in version 205.

set-default TARGET
     Set the default target to boot into. This sets (symlinks) the default.target alias to the given target unit.

     Added in version 205.
[...]

Bei beiden Usern die selben Einstellungen:

> systemctl get-default --user                                                                                                                                                                                                                                                                                
default.target
> systemctl get-default                                                                                                                                                                                                                                                                                       
graphical.target

Ich hatte wohl 2022 Folgendes gemacht, um den Autostart zu reparieren:

Das war die entscheidende Stelle.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.