Have same problem:
With zsh as default, every time I press "Enter" in terminal there is 4s delay in whole system.
I monitored CPU and CPU utilization is 100% every time I press enter in the terminal.
So, the problem was that I removed useless folders in $HOME: Desktop, Music, Templates, etc.
After, I noticed that value of $XDG_DESKTOP_DIR is "$HOME/" (But it was XDG_DESKTOP_DIR="$HOME/Desktop" before deletion of that directories)
WORKAROUND:
I created all that stuff again and changed ~/.config/user-dirs.dirs
Now it looks like that:
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
Hello!
Have same problem:
With zsh as default, every time I press "Enter" in terminal there is 4s delay in whole system.
I monitored CPU and CPU utilization is 100% every time I press enter in the terminal.
So, the problem was that I removed useless folders in $HOME: Desktop, Music, Templates, etc.
After, I noticed that value of $XDG_DESKTOP_DIR is "$HOME/" (But it was XDG_DESKTOP_ DIR="$HOME/ Desktop" before deletion of that directories)
WORKAROUND: user-dirs. dirs
I created all that stuff again and changed ~/.config/
Now it looks like that: DIR="$HOME/ Desktop" DIR="$HOME/ Downloads" DIR="$HOME/ Templates" _DIR="$ HOME/Public" DIR="$HOME/ Documents" DIR="$HOME/ Music" DIR="$HOME/ Pictures" DIR="$HOME/ Videos"
XDG_DESKTOP_
XDG_DOWNLOAD_
XDG_TEMPLATES_
XDG_PUBLICSHARE
XDG_DOCUMENTS_
XDG_MUSIC_
XDG_PICTURES_
XDG_VIDEOS_
Then re-login.