diff --git a/src/session.c b/src/session.c index 17a2d5a7..5e55a96d 100644 --- a/src/session.c +++ b/src/session.c @@ -1003,7 +1003,11 @@ static void smSaveYourselfPhase2Proc(SmcConn smc_conn, SmPointer client_data) plState = WMCreatePLDictionary(WMCreatePLString("Version"), WMCreatePLString("1.0"), WMCreatePLString("Screens"), state, NULL); - WMWritePropListToFile(plState, statefile, False); + if (!WMWritePropListToFile(plState, statefile, True)) { + wwarning(_("error while saving session state")); + WMReleasePropList(plState); + goto fail; + } WMReleasePropList(plState);