From: Christian Dywan Date: Mon, 30 Nov 2009 18:24:48 +0000 (+0100) Subject: Load default accels file from /etc/xdg/midori if no accels present X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1cdf0bf4ec66a9374f9e3dcab0ca708df4de615;p=midori Load default accels file from /etc/xdg/midori if no accels present --- diff --git a/midori/main.c b/midori/main.c index a52f521b..f2c99370 100644 --- a/midori/main.c +++ b/midori/main.c @@ -1837,6 +1837,8 @@ main (int argc, error = NULL; settings = settings_new_from_file (config_file, &extensions); katze_assign (config_file, build_config_filename ("accels")); + if (!g_file_test (config_file, G_FILE_TEST_EXISTS)) + katze_assign (config_file, sokoke_find_config_filename (NULL, "accels")); gtk_accel_map_load (config_file); katze_assign (config_file, build_config_filename ("search")); error = NULL;