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

rofi: Make sure we parsed the config before parsing bindings

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2017-06-01 17:46:51 +02:00
parent e576bc441c
commit dbac6fba5c
No known key found for this signature in database
GPG key ID: AC203F96E2C34BB7

View file

@ -790,10 +790,6 @@ int main ( int argc, char *argv[] )
TICK_N ( "Setup mainloop" );
bindings = nk_bindings_new ();
if ( !parse_keys_abe ( bindings ) ) {
cleanup ();
return EXIT_FAILURE;
}
if ( !display_setup ( main_loop, bindings ) ) {
g_warning ( "Connection has error" );
@ -831,6 +827,11 @@ int main ( int argc, char *argv[] )
config_parse_cmd_options ( );
TICK_N ( "Load cmd config " );
if ( !parse_keys_abe ( bindings ) ) {
cleanup ();
return EXIT_FAILURE;
}
if ( !dmenu_mode ) {
// setup_modi
if ( setup_modi () ) {