]> Dogcows Code - chaz/openbox/commitdiff
use g_getenv
authorDana Jansens <danakj@orodu.net>
Sat, 25 Oct 2003 19:35:12 +0000 (19:35 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 25 Oct 2003 19:35:12 +0000 (19:35 +0000)
parser/parse.c

index f7ca9d708856922e7da0d894ead41a106574c03f..3f8c5e12f99aca41a32626a59a488b07673b5388 100644 (file)
@@ -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 {
This page took 0.029389 seconds and 4 git commands to generate.