# HG changeset patch # User Matti Hamalainen # Date 1352712517 -7200 # Node ID 3d7ff16389cff50eb5a3777c76370589dcdf474f # Parent 895ede06ff11a40a8a6fcc14f1ca018bf7069d35 Cosmetics and comments. diff -r 895ede06ff11 -r 3d7ff16389cf main.c --- a/main.c Mon Nov 12 11:28:17 2012 +0200 +++ b/main.c Mon Nov 12 11:28:37 2012 +0200 @@ -1667,10 +1667,13 @@ { char *xdgConfigDir = getenv("XDG_CONFIG_HOME"), *userHomeDir = getenv("HOME"); + #ifdef USE_XDG + // If XDG is enabled, try the environment variable first if (xdgConfigDir != NULL) setHomeDir = th_strdup(xdgConfigDir); else + // Nope, try the obvious alternative setHomeDir = th_strdup_printf("%s/.config", userHomeDir); #else setHomeDir = th_strdup(userHomeDir); @@ -1692,7 +1695,7 @@ } } - optNickSep = optNickSepStr ? optNickSepStr[0] : SET_NICK_SEPARATOR; + optNickSep = optNickSepStr ? optNickSepStr[0] : SET_NICK_SEPARATOR; setBrowser = getenv("BROWSER"); if (setBrowser == NULL)