Make the restart path configurable.

This commit is contained in:
Fernando Tarlá Cardoso Lemos
2010-11-26 22:27:38 -02:00
committed by Michael Stapelberg
parent 622b51a1ea
commit 0a17fe973c
6 changed files with 20 additions and 3 deletions

View File

@ -375,7 +375,7 @@ void store_restart_layout() {
unsigned int length;
y(get_buf, &payload, &length);
char *globbed = resolve_tilde("~/.i3/_restart.json");
char *globbed = resolve_tilde(config.restart_state_path);
int fd = open(globbed, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
free(globbed);
if (fd == -1) {