Skip to content

Commit

Permalink
Try to improve #1297 deactivating even earlier.
Browse files Browse the repository at this point in the history
  • Loading branch information
lwindolf committed Oct 25, 2023
1 parent 2d030b3 commit c9634bd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/plugins_engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ liferea_plugins_engine_init (LifereaPluginsEngine * engine)
GError *error = NULL;
GVariant *list;
PeasPluginInfo *plugin_installer_plugin_info = NULL;
GSettings *plugin_settings;

engine->priv = liferea_plugins_engine_get_instance_private (engine);
engine->priv->plugin_settings = g_settings_new ("net.sf.liferea.plugins");
plugin_settings = g_settings_new ("net.sf.liferea.plugins");

/* Disable incompatible webkit-settings plugin */
list = g_settings_get_value (engine->priv->plugin_settings, "active-plugins");
list = g_settings_get_value (plugin_settings, "active-plugins");
names = g_variant_get_strv (list, &length);
if (g_strv_contains (names, "webkit-settings")) {
GVariantBuilder b;
Expand All @@ -71,10 +71,12 @@ liferea_plugins_engine_init (LifereaPluginsEngine * engine)
}
g_free (list);
list = g_variant_builder_end (&b);
g_settings_set_value (engine->priv->plugin_settings, "active-plugins", list);
g_settings_set_value (plugin_settings, "active-plugins", list);
}
g_free (names);

engine->priv = liferea_plugins_engine_get_instance_private (engine);
engine->priv->plugin_settings = plugin_settings;
peas_engine_enable_loader (PEAS_ENGINE (engine), "python3");

/* Require Lifereas's typelib. */
Expand Down

0 comments on commit c9634bd

Please sign in to comment.