window: add a helper for config file paths
authorPekka Paalanen <ppaalanen@gmail.com>
Tue, 15 Nov 2011 09:45:40 +0000 (11:45 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 15 Nov 2011 13:57:01 +0000 (08:57 -0500)
commit668dd56918f47c5753ab51b151ea8237647171bb
tree33e46e6f13002062f1945ce748e20e4b18f542fd
parentb38666e6d7cf0f0676aadf776b6dd5f16496829a
window: add a helper for config file paths

Add a helper function, that constructs a path to a config file from
XDG_CONFIG_HOME environment variable, by the rules of
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

Make desktop-shell find its config file from XDG_CONFIG_HOME. This
allows to have a personal config file without continuously fighting with
git about wayland-desktop-shell.ini.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
clients/config.c
clients/desktop-shell.c
clients/window.h