Summary: | xdg user dirs (Downloads, Music, Pictures, etc.) not created | ||
---|---|---|---|
Product: | [KDE Neon] neon | Reporter: | logicalwillow <roblokazyt> |
Component: | general | Assignee: | Neon Bugs <neon-bugs> |
Status: | RESOLVED WAITINGFORINFO | ||
Severity: | normal | CC: | 1wanderingexpat, barteqdx06, bizyaev, bugseforuns, dohos66258, guimarcalsilva, ilikefoss, jr, mss, neon-bugs, rdieter, sitter, tagwerk19 |
Priority: | HI | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
URL: | https://github.com/systemd/systemd/issues/18791 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
logicalwillow
2023-02-15 06:08:36 UTC
*** Bug 465947 has been marked as a duplicate of this bug. *** *** Bug 466114 has been marked as a duplicate of this bug. *** Also in VM installation using both neon-user-20230214-1145.iso and 20230214-0250/neon-testing-20230214-0250.iso. No user directories added at installation or when adding users after install. Seen on r/kdeneon some time back... https://old.reddit.com/r/kdeneon/comments/yfqlh2/standard_folders_downloads_documents_pictures_not/ and recently https://old.reddit.com/r/kdeneon/comments/11cek2y/whyhow_is_this_neon_releaseimage_still_online/ *** Bug 474518 has been marked as a duplicate of this bug. *** I'm not a programmer, but I found a file https://invent.kde.org/neon/neon/settings/-/blob/Neon/unstable/debian/neon-settings-2.postinst which is the postinstall script for neon-settings-2, which I'm guessing is responsible for setting-up Neon. I'm not sure, but would the fix for this bug be as simple as adding xdg-user-dirs-update somewhere in that file, or is that the wrong place for that? Thanks for digging up the tool which is supposed to fix the issue :-) The postinst script is the wrong place though since that would create the folders for root (only). According to the man page it
> is normally run automatically at the start of a user session to update the XDG user dirs according to the users locale
So for X there should probably be a snippet in /etc/X11/Xsession.d to do so. Since I'll switch to Wayland anyway, I'll try to dig up the proper place to have it called there...
Actually, the file /etc/xdg/autostart/xdg-user-dirs.desktop exists on my machine and should execute that command. It obviously isn't (neither for X nor for Wayland) or maybe "X-KDE-autostart-phase=1" (whatever that means) is the wrong phase? Looks like recent Neon uses systemd's xdg-autostart-generator (https://systemd.io/DESKTOP_ENVIRONMENTS/#xdg-autostart-integration) and somehow that unit/desktop file is not picked up: > systemctl --user list-units --all '*@autostart.service' > UNIT LOAD ACTIVE SUB DESCRIPTION > app-geoclue\x2ddemo\x2dagent@autostart.service loaded active running Geoclue Demo agent > app-kaccess@autostart.service loaded active running Accessibility > app-klipper@autostart.service loaded inactive dead Klipper > app-kup\x2ddaemon@autostart.service loaded inactive dead Kup > app-lts_eol@autostart.service loaded inactive dead Neon LTS End of Life > app-org.kde.discover.notifier@autostart.service loaded inactive dead Discover > app-org.kde.kdeconnect.daemon@autostart.service loaded active running KDE Connect > app-org.kde.plasma\x2dwelcome@autostart.service loaded inactive dead Welcome Center > > LOAD = Reflects whether the unit definition was properly loaded. > ACTIVE = The high-level unit activation state, i.e. generalization of SUB. > SUB = The low-level unit activation state, values depend on unit type. > 8 loaded units listed. > To show all installed unit files use 'systemctl list-unit-files'. This was reported to systemd by Rex Dieter in early 2021 and is supposedly fixed since February this year. Sounds to me like KDE Neon either (a) needs to update/backport systemd (yuck) (b) remove the offending line from the desktop file (c) add an explicit systemd user unit like Arch does according to that bug report *** Bug 480645 has been marked as a duplicate of this bug. *** *** Bug 481692 has been marked as a duplicate of this bug. *** Thank you for your bug report! However this bug report was created/provided previous to 01/01/2023 and also has not received any updates since before 01/01/2025. Unfortunately KDE neon no longer provides updates for anything older than noble 24.04 based edition's. Please upgrade to KDE neon noble and if you can reproduce the issue after upgrading to an active version, feel free to re-open this bug report. Thanks for understanding! |