all repos — openbox @ f531b18a44d5028a5f23a6326bb96aa8b8d75f2f

openbox fork - make it a bit more like ryudo

use the path properly for the session file
Dana Jansens danakj@orodu.net
commit

f531b18a44d5028a5f23a6326bb96aa8b8d75f2f

parent

ecab6fe3c8cde22e0d21c7df1714f3dabdac4160

1 files changed, 2 insertions(+), 7 deletions(-)

jump to
M openbox/session.copenbox/session.c

@@ -41,7 +41,6 @@ {

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 @@ prop_res.vals[j].length = strlen(sm_argv[i]);

} } - 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); }