mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
b18215bd6f
I used Coccinelle to create a base patch: spatch --sp-file hardcode-gsettings.cocci --dir src/ --in-place ```cocci @@ expression GSETTINGS_SCHEMA; expression settings; @@ - settings = g_settings_new (GSETTINGS_SCHEMA); + { + GSettingsSchemaSource *schema_source; + GSettingsSchema *schema; + schema_source = g_settings_schema_source_new_from_directory ("@ESD_GSETTINGS_PATH@", g_settings_schema_source_get_default (), TRUE, NULL); + schema = g_settings_schema_source_lookup (schema_source, GSETTINGS_SCHEMA, FALSE); + settings = g_settings_new_full (schema, NULL, NULL); + g_settings_schema_source_unref (schema_source); + g_settings_schema_unref (schema); + } ``` |
||
---|---|---|
.. | ||
deepin | ||
enlightenment | ||
gnome-2 | ||
gnome-3 | ||
gnustep | ||
lumina | ||
lxde/core | ||
lxqt | ||
mate | ||
maxx | ||
pantheon | ||
plasma-5 | ||
rox/rox-filer | ||
surf-display | ||
xfce | ||
xfce4-14 |