1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

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

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 );