VLC and the XDG Base Directory Standard
Posted: 02 Nov 2009 17:18
According to the change log for 0.9, VLC (at least the Linux port) "now complies with the XDG Base Directory Standard". However, this is not the case of at least the HTTP interface. I wrote the information on access control on the wiki, and if the XDG standard had been followed, that information would've been correct (I've - for now - commented that out so the wiki only states information known to work). However, it seems VLC does not obey the $XDG_CONFIG_HOME variable - if it did, ~/.config/vlc/http/.hosts would be read and parsed on startup. Alternatively, ~/.config/vlc/.hosts could be used but that'd be inconsistent with the path used for global configuration. The XDG spec says:
I hope I get corrected on this, but as it stands now it seems XDG compliance is only partial and the change log should be updated to reflect this, alternatively VLC should be changed to obey the full XDG spec.
For reference:
vlc --version
VLC media player 1.0.3-rc Goldeneye
VLC version 1.0.3-rc Goldeneye
Compiled by root@stargate.
Compiler: gcc version 4.4.2 (Gentoo 4.4.2 p1.0)
Thank you!
/usr/share/vlc/http/.hosts get overwritten on every single reinstall and upgrade unless your package manager supports some kind of CONFIG_PROTECT variable (gentoo have this). This is important because some (all?) remote control software utilize the HTTP interface, which means you have to redo changes to this file every time you update VLC.$XDG_CONFIG_HOME defines the base directory relative to which user specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.
I hope I get corrected on this, but as it stands now it seems XDG compliance is only partial and the change log should be updated to reflect this, alternatively VLC should be changed to obey the full XDG spec.
For reference:
vlc --version
VLC media player 1.0.3-rc Goldeneye
VLC version 1.0.3-rc Goldeneye
Compiled by root@stargate.
Compiler: gcc version 4.4.2 (Gentoo 4.4.2 p1.0)
Thank you!