- rcpath = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, "pluginsrc", NULL);
- if ((pfile = prefs_write_open(rcpath)) == NULL) {
- g_warning("failed to write plugin list\n");
- g_free(rcpath);
- return;
- }
+ for (type_cur = plugin_types; type_cur != NULL; type_cur = g_slist_next(type_cur)) {
+ rcpath = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, COMMON_RC, NULL);
+ block = g_strconcat("Plugins_", type_cur->data, NULL);
+ if ((pfile = prefs_write_open(rcpath)) == NULL ||
+ (prefs_set_block_label(pfile, block) < 0)) {
+ g_warning("failed to write plugin list\n");
+ g_free(rcpath);
+ return;
+ }
+ g_free(block);