Question regarding $XDG_DATA_DIRS

Akbarkhon Variskhanov akbarkhon.variskhanov at gmail.com
Wed Oct 12 19:56:09 UTC 2022


Hi.

I noticed that the default value has a trailing slash for both directories:

> If $XDG_DATA_DIRS is either not set or empty, a value equal to /usr/local/share/:/usr/share/ should be used.

I was wondering what's the benefit of including a trailing slash? Is
there a specific purpose to it or is it a typo? With all due respect,
it looks so out of place. Path-related variables usually strip it off.

Sorry if I'm asking in the wrong place.

Cheers,
Akbar.


More information about the xdg mailing list