Re: What is creating directories under my home directory?
On 28/09/2025 11:02, Mike Castle wrote:
Mike, I think you described a proper way to disable the XDG path to run
autostart scripts, but I suspect there are still might be systemd user
session units.
In my XFCE setup, under Settings -> Session and Startup -> Application
Autostart I disabled the following "Programs":
User folders update (Update common folders names to match current locale)
User folders update
User folders update
UI behavior might be improved to show script names and paths to
disambiguate "user-friendly" names.
I forget why there are _two_ "User folders update". They came from
different packages (like one shared one and one specific Desktop
Environments (DE).
Accordingly to "journalctl -b --user" xdg-user-dirs-kde.desktop is
executed during KDE session startup while xdg-user-dirs.desktop is not.
I do not see anything suggesting that the "-kde" suffix should be
interpreted as DE-specific file in
<https://specifications.freedesktop.org/autostart-spec/latest/>
I have no idea what is the real world practice. Somebody may try to
experiment if both files are executed during XFCE session (logs are not
so detailed as for KDE).
At first glance almost identical files look like a bug
dpkg -S user-dirs*.desktop
desktop-base: /etc/xdg/autostart/xdg-user-dirs-kde.desktop
xdg-user-dirs: /etc/xdg/autostart/xdg-user-dirs.desktop
I would expect that one of them should be dropped, maybe adjusting
dependencies of some packages. (Side note: these files are not shown in
KDE System Settings autostart section.)
$ cat .config/autostart/xdg-user-dirs.desktop
[Desktop Entry]
Hidden=true
It looks like as a right way to disable XDG autostart entries.
I think, in theory, these are all supposed to be reused by the various
DEs, those are likely to survive any experiments you do when exploring
different ones.
I expect that OnlyShowIn and NotShowIn should be used to make some
.desktop files DE-specific.
Reply to: