Initialize all the configuration before upgrading config.

This commit is contained in:
Dave Davenport 2020-01-02 18:57:53 +01:00
parent 25402f44eb
commit 7a6fcb20f4
1 changed files with 7 additions and 0 deletions

View File

@ -976,6 +976,13 @@ int main ( int argc, char *argv[] )
return EXIT_SUCCESS;
}
if ( find_arg ( "-upgrade-config") >= 0 ) {
setup_modi();
for ( unsigned int i = 0; i < num_modi; i++ ) {
mode_init ( modi[i] );
}
const char *cpath = g_get_user_config_dir ();
if ( cpath ) {
char *fcpath = g_build_filename ( cpath, "rofi", NULL );