From 5d4ce25afe538dad351d2b0fa37bc5f4c15967bd Mon Sep 17 00:00:00 2001 From: Barrucadu Date: Mon, 27 Apr 2009 21:50:37 +0100 Subject: Fixed XDG config dir implementation. Now looks for $XDG_CONFIG_HOME/uzbl/config. --- uzbl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'uzbl.c') diff --git a/uzbl.c b/uzbl.c index 3528bf4..895d880 100644 --- a/uzbl.c +++ b/uzbl.c @@ -457,7 +457,7 @@ settings_init () { printf("XDG_CONFIG_HOME: %s\n", XDG_CONFIG_HOME); strcpy (conf, XDG_CONFIG_HOME); - strcat (conf, "/uzbl"); + strcat (conf, "/uzbl/config"); if (file_exists (conf)) { printf ("Config file %s found.\n", conf); config_file = &conf[0]; @@ -473,7 +473,7 @@ settings_init () { char *dir = (char *)strtok (dirs, ":"); while (dir && ! file_exists (conf)) { strcpy (conf, dir); - strcat (conf, "/uzbl"); + strcat (conf, "/uzbl/config"); if (file_exists (conf)) { printf ("Config file %s found.\n", conf); config_file = &conf[0]; -- cgit v1.2.3