jcnix/Desurium — comment on commit 07cb624eed913719b7234b6e642e2712de740f3a
File: src/static/util/code/UtilLinux.cpp line 707
By ssokolow:

This approach is incorrect because `~/.local/share` is customizable.

What you want is `$XDG_DATA_HOME/applications` with a default value for `$XDG_DATA_HOME` of `$HOME/.local/share`.

This is the wrong way to do this. Just like on Windows, the location of the Desktop folder is configurable on Linux.

It's explained in the (ultra-concise and very readable) [XDG Base Directory Specification](http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html).