Mercurial > geeqie
diff src/main.c @ 1736:8e64965c1d92
load desktop files in idle time
- scanning all desktop files takes a lot of time because of hdd seek
- this change moves the scanning to idle time
- the editors appears in the menus some time after startup
https://sourceforge.net/tracker/index.php?func=detail&aid=2852522&group_id=222125&atid=1054680
author | nadvornik |
---|---|
date | Sun, 06 Sep 2009 14:01:03 +0000 |
parents | 6cae2af8fdd1 |
children | 8b9bbf92725f |
line wrap: on
line diff
--- a/src/main.c Sun Sep 06 09:08:37 2009 +0000 +++ b/src/main.c Sun Sep 06 14:01:03 2009 +0000 @@ -31,6 +31,7 @@ #include "image-overlay.h" #include "layout.h" #include "layout_image.h" +#include "layout_util.h" #include "options.h" #include "remote.h" #include "secure_save.h" @@ -605,6 +606,9 @@ { LayoutWindow *lw = NULL; + /* make sure that external editors are loaded, we would save incomplete configuration otherwise */ + layout_editors_reload_finish(); + remote_close(remote_connection); collect_manager_flush(); @@ -816,8 +820,6 @@ /* load_options calls these functions after it parses global options, we have to call it here if it fails */ filter_add_defaults(); filter_rebuild(); - - editor_load_descriptions(); } /* handle missing config file and commandline additions*/ @@ -827,6 +829,8 @@ layout_new_from_config(NULL, NULL, TRUE); } + layout_editors_reload_start(); + if (command_line->collection_list && !command_line->startup_command_line_collection) { GList *work;