mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 21:38:00 +01:00
simplify WMWritePropListToFile()
remove the choice of atomic/non-atomic writes. firstly, the only users of non-atomic writes were getstyle and geticonset; secondly, who in their right minds would ever want non-atomic writes; thirdly, the file system will screw you anyway *G*.
This commit is contained in:
committed by
Carlos R. Mafra
parent
833128385f
commit
badecc244b
@@ -967,7 +967,7 @@ void wScreenSaveState(WScreen * scr)
|
||||
snprintf(buf, sizeof(buf), "WMState.%i", scr->screen);
|
||||
str = wdefaultspathfordomain(buf);
|
||||
}
|
||||
if (!WMWritePropListToFile(scr->session_state, str, True)) {
|
||||
if (!WMWritePropListToFile(scr->session_state, str)) {
|
||||
wsyserror(_("could not save session state in %s"), str);
|
||||
}
|
||||
wfree(str);
|
||||
|
||||
Reference in New Issue
Block a user