structure of desktop file directories

Jerome Leclanche adys.wh at
Fri Oct 4 04:38:03 PDT 2013

On Fri, Oct 4, 2013 at 12:26 PM, Simon McVittie
<simon.mcvittie at> wrote:
> On 04/10/13 12:04, Jerome Leclanche wrote:
>> On Fri, Oct 4, 2013 at 11:53 AM, Simon McVittie
>> <simon.mcvittie at> wrote:
>>> The search path is longer than that:
>>> ~/.local/share/applications by default, and setting XDG_DATA_HOME or
>>> XDG_DATA_DIRS changes it per-user and perhaps even per-process.
>> Doesn't /var have an equivalent in ~/.local/var or something similar?
> Not directly; there's ${XDG_DATA_HOME}:${XDG_DATA_DIRS} or
> ${XDG_CACHE_HOME}, depending what you're storing.
> Also, if I set my XDG_DATA_HOME to "$HOME/appdata" or something, the
> spec says applications in $HOME/appdata/applications/*.desktop should be
> found, but what's the corresponding "/var-like" directory for that?
> ~/.local/share is only a default.

As far as I understand it, it would still be in ~/.local/var. It's
just ~/.local/share that moves.

>     S

More information about the xdg mailing list