[pulseaudio-discuss] [PATCH v2] core-util: Fail if XDG_RUNTIME_DIR belongs to someone else

Glenn Golden gdg at zplane.com
Sun Sep 14 12:53:00 PDT 2014


Hi David,

David Henningsson <david.henningsson at canonical.com> [2014-09-08 15:22:22 +0200]:
>
> If none of the above is present, all of the list below will be is tried, in
> this priority order:
> 
>  5) Per-user instance:
>  5a) based on PULSE_RUNTIME_PATH
>  5b) based on XDG_CONFIG_DIR (if no PULSE_RUNTIME_PATH)
>  5c) based on ~/.pulse (if no XDG_CONFIG_DIR)
>  5d) based on XDG_CONFIG_HOME (if ~/.pulse does not already exist)
>  5e) based on ~/.config/pulse (if no XDG_CONFIG_HOME)
> 

In 5b-c, is it possible that XDG_RUNTIME_DIR was intended? I can't find any
doc for envar XDG_CONFIG_DIR in the XDG Base Directory Spec (although there 
is an XDG_CONFIG_DIRS, but that seems like that's intended for configuration
stuff rather than for locating runtime files like the socket or pidfile...)

If XDG_CONFIG_DIR was intended (or perhaps just a typo, intended to be ...DIRS) 
then how/where does XDG_RUNTIME_DIR itself come into the picture?


More information about the pulseaudio-discuss mailing list