Bug 407760 - Refreshing desktop removed ~/.config/user-dirs.dirs
Summary: Refreshing desktop removed ~/.config/user-dirs.dirs
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: Containment (show other bugs)
Version: 5.15.4
Platform: Kubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: Sebastian Kügler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-20 12:49 UTC by igor.zuk
Modified: 2019-05-26 18:34 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description igor.zuk 2019-05-20 12:49:22 UTC
SUMMARY
I'm using localized (polish) version of Plasma. My desktop by default displays files located at '~/Pulpit' ('pulpit' is 'desktop' in polish). After hitting F5 Plasma created directory '~/Desktop' and started displaying its content (nothing at first). 

STEPS TO REPRODUCE
1. Install Kubuntu with polish locale
2. Place files on desktop
3. Refresh desktop

OBSERVED RESULT
Desktop icons are no longer visible

EXPECTED RESULT
Desktop icons are visible

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 David Edmundson 2019-05-20 12:53:37 UTC
What is the output of

xdg-user-dir DESKTOP
Comment 2 igor.zuk 2019-05-20 12:56:03 UTC
It's
/home/<my_user>/Desktop
Comment 3 igor.zuk 2019-05-20 13:15:06 UTC
It turns out that '~/.config/user-dirs.dirs' was completely gone. The fallback '/etc/xdg/user-dirs.defaults' obviously is english-localized.

I've run 'xdg-user-dirs-update', which recreated '~/.config/user-dirs.dirs' with proper locale EXCEPT for 'XDG_DESKTOP_DIR'.

After manual adjustment desktop automatically reloaded and it's back to normal. F5 works correctly and causes no trouble.
Comment 4 igor.zuk 2019-05-20 13:21:10 UTC
The refreshing itself may not be the cause of 'user-dirs' removal. I've manually renamed it and Plasma didn't notice it until I've refreshed the desktop. Only then it switched to non-localized desktop directory.

Should I close this issue or is there still a chance of finding the real root cause?
Comment 5 Patrick Silva 2019-05-25 13:59:56 UTC
Requested info was already provided.
Comment 6 David Edmundson 2019-05-26 18:34:05 UTC
>Should I close this issue or is there still a chance of finding the real root cause?

Not from this. If you can figure out what removed it, please open a new report. There's no plasmashell code that would.