summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-07-28 04:53:51 +0000
committerDana Jansens <danakj@orodu.net>2003-07-28 04:53:51 +0000
commitf531b18a44d5028a5f23a6326bb96aa8b8d75f2f (patch)
tree2425d9bc094c2d69ae0149bf981021ce91b13d0f /openbox
parentecab6fe3c8cde22e0d21c7df1714f3dabdac4160 (diff)
use the path properly for the session file
Diffstat (limited to 'openbox')
-rw-r--r--openbox/session.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/openbox/session.c b/openbox/session.c
index 12af441f..9ee9f04d 100644
--- a/openbox/session.c
+++ b/openbox/session.c
@@ -41,7 +41,6 @@ static void save_commands()
SmProp *props[2];
SmProp prop_cmd = { SmCloneCommand, SmLISTofARRAY8, 1, };
SmProp prop_res = { SmRestartCommand, SmLISTofARRAY8, };
- gchar *file_path;
gint i, j, n;
gboolean has_id = FALSE, has_file = FALSE;
@@ -80,19 +79,15 @@ static void save_commands()
}
}
- file_path = g_build_filename(g_get_home_dir(), ".openbox", "sessions",
- save_file, NULL);
-
prop_res.vals[j].value = "--sm-save-file";
prop_res.vals[j++].length = strlen("--sm-save-file");
- prop_res.vals[j].value = file_path;
- prop_res.vals[j++].length = strlen(file_path);
+ prop_res.vals[j].value = save_file;
+ prop_res.vals[j++].length = strlen(save_file);
props[0] = &prop_res;
props[1] = &prop_cmd;
SmcSetProperties(sm_conn, 1, props);
- g_free(file_path);
g_free(prop_res.vals);
g_free(prop_cmd.vals);
}