From: Juan A. Suarez Romero Date: Fri, 17 Jan 2014 20:08:05 +0000 (+0000) Subject: main: create time directory if it doesn't exist X-Git-Tag: 0.9.0~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33b4e1535841553159efc2920cb2e6aa4e797ea4;p=thirdparty%2Fplymouth.git main: create time directory if it doesn't exist This makes sure there is a convenient place to write down boot duration. --- diff --git a/src/main.c b/src/main.c index 9b0c9377..2ccb8eca 100644 --- a/src/main.c +++ b/src/main.c @@ -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;