From: Dana Jansens Date: Sat, 25 Oct 2003 19:35:12 +0000 (+0000) Subject: use g_getenv X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=e5c7e635bc9842696f3171745dd2d0a55c16a6b1;p=chaz%2Fopenbox use g_getenv --- diff --git a/parser/parse.c b/parser/parse.c index f7ca9d70..3f8c5e12 100644 --- a/parser/parse.c +++ b/parser/parse.c @@ -302,21 +302,21 @@ void parse_paths_startup() return; xdg_start = TRUE; - path = getenv("XDG_CONFIG_HOME"); + path = g_getenv("XDG_CONFIG_HOME"); if (path && path[0] != '\0') /* not unset or empty */ xdg_config_home_path = g_build_filename(path, NULL); else xdg_config_home_path = g_build_filename(g_get_home_dir(), ".config", NULL); - path = getenv("XDG_DATA_HOME"); + path = g_getenv("XDG_DATA_HOME"); if (path && path[0] != '\0') /* not unset or empty */ xdg_data_home_path = g_build_filename(path, NULL); else xdg_data_home_path = g_build_filename(g_get_home_dir(), ".local", "share", NULL); - path = getenv("XDG_CONFIG_DIRS"); + path = g_getenv("XDG_CONFIG_DIRS"); if (path && path[0] != '\0') /* not unset or empty */ xdg_config_dir_paths = split_paths(path); else { @@ -333,7 +333,7 @@ void parse_paths_startup() xdg_config_home_path, (GSListFunc) g_slist_prepend); - path = getenv("XDG_DATA_DIRS"); + path = g_getenv("XDG_DATA_DIRS"); if (path && path[0] != '\0') /* not unset or empty */ xdg_data_dir_paths = split_paths(path); else {