Hacker News new | ask | show | jobs
by justeleblanc 1178 days ago
> That's not in the XDG spec.

But it is. In the XDG user dir spec.

1 comments

Wait, I get to blame XDG for this? I've never cared about dotfiles since they're invisible. But Videos, Pictures, etc. have always been a nuisance.
I already posted this above, but here is a repost, because I know exactly how you feel:

        cat ~/.config/user-dirs.dirs
        XDG_DESKTOP_DIR="$HOME/.Desktop"
        XDG_DOWNLOAD_DIR="$HOME/tmp"
        XDG_TEMPLATES_DIR="$HOME/tmp"
        XDG_PUBLICSHARE_DIR="$HOME/tmp"
        XDG_DOCUMENTS_DIR="$HOME/tmp"
        XDG_MUSIC_DIR="$HOME/tmp"
        XDG_PICTURES_DIR="$HOME/tmp"
        XDG_VIDEOS_DIR="$HOME/tmp"
Note that XDG_DESKTOP_DIR and XDG_DOWNLOAD_DIR have to point to different directories. In hindsight, this is obvious, but this is also a really stupid "security" bug-o-feature that costed countless hours to countless people.
> Note that XDG_DESKTOP_DIR and XDG_DOWNLOAD_DIR have to point to different directories. In hindsight, this is obvious, but this is also a really stupid "security" bug-o-feature that costed countless hours to countless people.

It's not obvious at all. The only security issue is programs dumping "downloads" on your harddrive without asking you first. Sucks that this is yet another thing that Mozilla has copied from Chrome without thinking.

I shove them all into ~/docs and then edit my ~/.config/user-dirs.dirs file to match.