mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 21:38:00 +01:00
Atomic save for session
This patch is part of "Atomic saves for history and session" from http://git.altlinux.org/people/raorn/packages/WindowMaker.git
This commit is contained in:
committed by
Carlos R. Mafra
parent
05720d9707
commit
8490e31fde
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user