Sometimes Ubuntu create English version of my folders in home directory and these are empty. This is pretty annoying.

Desktop    Downloads  Muzyka    Pictures  Public     snap       Videos
Documents  Materialy  Nagrania  Pobrane   Publiczny  Szablony   Wideo
Dokumenty  Music      Obrazy    Projekty  Pulpit     Templates

==> /home/imiszczfun/.config/user-dirs.dirs <==
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.

==> /home/imiszczfun/.config/user-dirs.locale <==

Photo of home directory:

enter image description here

Does anyone know how to fix this?

  • Which directories are being created, and when? FYI, can use a terminal to ls ~ or ls -la ~, then copy & paste the text listings into the question (using the "code" formtting) – Xen2050 Dec 27 '17 at 3:21
  • Desktop, Documents, Downloads, Music, Pictures, Public, Videos. These are creating randomly. My language is set to Polish soo I also have: Pulpit, Dokumenty, Pobrane, Muzyka, Zdjecia, Publiczny, Filmy. – iMiszczFUN Dec 27 '17 at 3:29
  • Add the output of head -n-0 ~/.config/user-dirs.* as well, please. – muru Dec 27 '17 at 3:32
  • Okay. I added this to post. – iMiszczFUN Dec 27 '17 at 3:35
  • The XDG... names look non-english, but the ~/.config/user-dirs.locale file is empty? No locale might have something to do with it... I don't know what your locale is though, locale in a terminal should output your settings, if they're something like LANG='en_US... that's english (FYI, lots of man pages about xdg... and user-dirs... stuff) – Xen2050 Dec 27 '17 at 3:48

Despite this will not solve your problem, may help you to find the root of it.

  1. Use ls -l ~ | grep Templates to find the datetimem of the folder creation
  2. Check the logs with sudo grep -e "xdg" -R /var/log | grep -e "DATE OF CREATION" --color for finding what was doing your system when the folder was created.

With this information, you may fix the problem or open a bug report on the application that is creating those empty default foders

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.