]> Dogcows Code - chaz/openbox/blobdiff - openbox/session.c
make the obt library branch compile again with all the changes merged in from backport
[chaz/openbox] / openbox / session.c
index 22b47e78e141aaf9298e246020d321f379e0e59b..c38a8204ca018a238086d3ab852c23dccfcef501 100644 (file)
@@ -41,6 +41,7 @@ GList* session_state_find(struct _ObClient *c) { return NULL; }
 #include "focus.h"
 #include "gettext.h"
 #include "obt/parse.h"
+#include "obt/paths.h"
 
 #include <time.h>
 #include <errno.h>
@@ -90,15 +91,18 @@ static void session_state_free(ObSessionState *state);
 void session_startup(gint argc, gchar **argv)
 {
     gchar *dir;
+    ObtPaths *p;
 
     if (!ob_sm_use) return;
 
     sm_argc = argc;
     sm_argv = argv;
 
-    dir = g_build_filename(parse_xdg_data_home_path(),
-                           "openbox", "sessions", NULL);
-    if (!parse_mkdir_path(dir, 0700)) {
+    p = obt_paths_new();
+    dir = g_build_filename(obt_paths_data_home(p), "openbox", "sessions",NULL);
+    obt_paths_unref(p), p = NULL;
+
+    if (!obt_paths_mkdir_path(dir, 0700)) {
         g_message(_("Unable to make directory '%s': %s"),
                   dir, g_strerror(errno));
     }
@@ -661,7 +665,7 @@ static void session_load_file(const gchar *path)
         obt_parse_instance_unref(i);
         return;
     }
-    node = obt_parse_instance_root(i);
+    node = obt_parse_root(i);
 
     if ((n = obt_parse_find_node(node->children, "desktop")))
         session_desktop = obt_parse_node_int(n);
This page took 0.024231 seconds and 4 git commands to generate.