From be8eeabefcec730747369b63395dba941eaf9c69 Mon Sep 17 00:00:00 2001 From: William Manley Date: Tue, 11 Feb 2014 16:30:31 +0000 Subject: [PATCH] docs: Fix location of plugins and registry in home directories Fixes out of date documentation left over since 0.10. In 1.0 plugins are stored in $XDG_DATA_HOME and the registry in $XDG_CACHE_HOME conformant with the XDG Base Directory Specification[1]. [1]: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html https://bugzilla.gnome.org/show_bug.cgi?id=724132 --- docs/gst/running.xml | 2 +- gst/gstregistry.c | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/gst/running.xml b/docs/gst/running.xml index 9b4a36bfe7..67ac4fa21a 100644 --- a/docs/gst/running.xml +++ b/docs/gst/running.xml @@ -46,7 +46,7 @@ plug-ins in the user's home directory, or rather the user's "data home" directory according to the xdg base dir specification. Usually this will be a directory called plugins inside the -.local/share/.gstreamer-&GST_API_VERSION; directory in +.local/share/gstreamer-&GST_API_VERSION; directory in the user's home directory by default, though this search path may change if the XDG_DATA_HOME environment variable is set. diff --git a/gst/gstregistry.c b/gst/gstregistry.c index 0830395add..dfd87d0ce3 100644 --- a/gst/gstregistry.c +++ b/gst/gstregistry.c @@ -57,15 +57,21 @@ * * default locations (if GST_PLUGIN_SYSTEM_PATH is not set). Those * default locations are: - * ~/.gstreamer-$GST_API_VERSION/plugins/ + * $XDG_DATA_HOME/gstreamer-$GST_API_VERSION/plugins/ * and $prefix/libs/gstreamer-$GST_API_VERSION/. + * + * $XDG_DATA_HOME defaults to + * $HOME/.local/share. * * * * The registry cache file is loaded from - * ~/.gstreamer-$GST_API_VERSION/registry-$ARCH.bin or the - * file listed in the GST_REGISTRY env var. One reason to change the registry - * location is for testing. + * $XDG_CACHE_HOME/gstreamer-$GST_API_VERSION/registry-$ARCH.bin + * (where + * + * $XDG_CACHE_HOME defaults to + * $HOME/.cache) or the file listed in the GST_REGISTRY + * env var. One reason to change the registry location is for testing. * * For each plugin that is found in the plugin search path, there could be 3 * possibilities for cached information: