sm_sessions_path = g_build_filename(parse_xdg_data_home_path(),
"openbox", "sessions", NULL);
- parse_mkdir_path(sm_sessions_path, 0700);
+ if (!parse_mkdir_path(sm_sessions_path, 0700))
+ g_warning(_("Unable to make directory '%s': %s"),
+ sm_sessions_path, g_strerror(errno));
if (save_file)
session_load(save_file);
if (!f) {
success = FALSE;
g_warning("unable to save the session to %s: %s",
- save_file, strerror(errno));
+ save_file, g_strerror(errno));
} else {
guint stack_pos = 0;
if (fflush(f)) {
success = FALSE;
g_warning("error while saving the session to %s: %s",
- save_file, strerror(errno));
+ save_file, g_strerror(errno));
}
fclose(f);
}