#include "focus.h"
#include "gettext.h"
#include "obt/parse.h"
+#include "obt/paths.h"
#include <time.h>
#include <errno.h>
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));
}
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);