diff options
author | Juan A. Suarez Romero <jasuarez@igalia.com> | 2014-01-17 20:08:05 +0000 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2014-01-20 14:55:10 -0500 |
commit | 33b4e1535841553159efc2920cb2e6aa4e797ea4 (patch) | |
tree | 5e72848dd5bbeab4dd60f11c8b4788d63dc6a602 | |
parent | 3d264547718db8c149f6f40cada035b1b02e7257 (diff) |
main: create time directory if it doesn't exist
This makes sure there is a convenient place to write down boot duration.
-rw-r--r-- | src/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1293,9 +1293,11 @@ on_quit (state_t *state, } if (state->system_initialized) - ply_progress_save_cache (state->progress, - get_cache_file_for_mode (state->mode)); - + { + ply_create_directory (PLYMOUTH_TIME_DIRECTORY); + ply_progress_save_cache (state->progress, + get_cache_file_for_mode (state->mode)); + } state->quit_trigger = quit_trigger; state->should_retain_splash = retain_splash; |