- rcpath = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, COMMON_RC, NULL);
- if ((pfile = prefs_write_open(rcpath)) == NULL ||
- (prefs_set_block_label(pfile, "Plugins") < 0)) {
- g_warning("failed to write plugin list\n");
- g_free(rcpath);
- return;
- }
-
- for (cur = plugins; cur != NULL; cur = g_slist_next(cur)) {
- plugin = (Plugin *)cur->data;
+ 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);
+
+ for (plugin_cur = plugins; plugin_cur != NULL; plugin_cur = g_slist_next(plugin_cur)) {
+ plugin = (Plugin *) plugin_cur->data;