Give XDG_DATA_HOME priority over XDG_DATA_DIRS for servicedirs
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 24 Feb 2011 17:17:22 +0000 (17:17 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 24 Feb 2011 17:17:22 +0000 (17:17 +0000)
commit3681753421e4f5538e938f7d151c901f7c2f34d1
tree328cf2a076d6a981dc7fc7d57739f5169a0d4733
parentcf33a006dc3324a0a680454f76fc0648a9f562a1
Give XDG_DATA_HOME priority over XDG_DATA_DIRS for servicedirs

According to the XDG Base Directory Specification, “the base directory
defined by $XDG_DATA_HOME is considered more important than any of the
base directories defined by $XDG_DATA_DIRS.”  This makes it easier to
override a system service file as a normal user.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34496
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-sysdeps-unix.c