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:
parent
25402f44eb
commit
7a6fcb20f4
1 changed files with 7 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue