diff options
author | Dave Davenport <qball@gmpclient.org> | 2020-01-02 18:57:53 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2020-01-02 18:57:53 +0100 |
commit | 7a6fcb20f45c2b4751c30cb46be5e8f28e56e3d3 (patch) | |
tree | 40acc58f320dd93f8a979ac875c5225c00c46f86 | |
parent | 25402f44eb56f745628aea511efef2b628b52009 (diff) |
Initialize all the configuration before upgrading config.
-rw-r--r-- | source/rofi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/rofi.c b/source/rofi.c index f65fdfda..2d300e30 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -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 ); |