X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fsession.c;h=2fd83e983ca0b5754fcef2129cd8dd4cab7247ee;hb=def76092b587e7e9a2b212dc5211773e336525e1;hp=8e8f2b7b34005cd967d1a535a81dfc5b625c2c6d;hpb=ae04366751a726ae0f24967fb672bec778791c19;p=chaz%2Fopenbox diff --git a/openbox/session.c b/openbox/session.c index 8e8f2b7b..2fd83e98 100644 --- a/openbox/session.c +++ b/openbox/session.c @@ -163,7 +163,9 @@ void session_startup(gint *argc, gchar ***argv) 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); @@ -333,7 +335,7 @@ static gboolean session_save() 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; @@ -423,7 +425,7 @@ static gboolean session_save() 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); }