rg3/youtube-dl — comment on commit 0cd235eef674540b7001f15681c97d7dd8e6cb13
File: youtube-dl line 4133
By phihag:

xdg does the exact same thing, and all we'd need are these two lines (Plus, we'd still need a workaround for Windows, since xdg is UNIX-specific). Therefore, I see no reason at all to use that dependency. Note that trivialjson is only used on Python 2.5 and older. The strong point of youtube-dl has always been that is trivial to deploy, and that means no dependencies but python.