2010-06-28 22:51:25 +00:00
|
|
|
$OpenBSD: patch-src_config_c,v 1.2 2010/06/28 22:51:26 ajacoutot Exp $
|
2009-09-02 19:26:17 +00:00
|
|
|
--- src/config.c.orig Wed Aug 19 14:39:09 2009
|
|
|
|
+++ src/config.c Mon Aug 31 20:30:32 2009
|
|
|
|
@@ -226,8 +226,8 @@ void load_configuration(xcb_connection_t *conn, const
|
|
|
|
/* We first check for ~/.i3/config, then for /etc/i3/config */
|
|
|
|
char *globbed = glob_path("~/.i3/config");
|
|
|
|
if ((handle = fopen(globbed, "r")) == NULL)
|
|
|
|
- if ((handle = fopen("/etc/i3/config", "r")) == NULL)
|
|
|
|
- die("Neither \"%s\" nor /etc/i3/config could be opened\n", globbed);
|
|
|
|
+ if ((handle = fopen("${SYSCONFDIR}/i3/config", "r")) == NULL)
|
|
|
|
+ die("Neither \"%s\" nor ${SYSCONFDIR}/i3/config could be opened\n", globbed);
|
|
|
|
free(globbed);
|
|
|
|
}
|
|
|
|
char key[512], value[512], buffer[1026];
|