#1033390 plasma-desktop: Autostart Applications do not start when XDG_CONFIG_HOME is not $HOME/.config

Package:
plasma-desktop
Source:
plasma-desktop
Description:
Tools and widgets for the desktop
Submitter:
James R Phillips
Date:
2023-03-24 03:30:05 UTC
Severity:
normal
#1033390#5
Date:
2023-03-24 03:27:16 UTC
From:
To:
Dear Maintainer,

I boot multiple OS installs with a common /home partition, and have found it
best to maintain separate XDG configuration directories in $HOME, one for
each OS install. This prevents the desktop setting of each OS from interfering
with each other. This is done by setting the value of the XDG_CONFIG_HOME
environmental variable differently for each OS. When this variable is not set,
the default location for XDG configuration is $HOME/.config.

This mostly works with KDE plasma in Testing, but I do find that the autostart
applications are not starting if XDG_CONFIG_HOME is not $HOME/.config. When they
don't start, I can still see them in the Autostart section of plasma's System
Settings, and can add and remove them there.

A workaround I have found, if XDG_CONFIG_HOME is not $HOME/.config, is to put
a symlink in $HOME/.config pointing to $XDG_CONFIG_HOME/autostart. Once this
is done, the applications do start at login.

It seems clear that the startup process is ignoring the value of XDG_CONFIG_HOME
in searching for autostart application; it is instead always looking for
them in $HOME/.config/autostart.