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: