diff --git a/legacy/elementary/src/lib/elm_config.c b/legacy/elementary/src/lib/elm_config.c index bcfa16b6e7..13749add63 100644 --- a/legacy/elementary/src/lib/elm_config.c +++ b/legacy/elementary/src/lib/elm_config.c @@ -1317,7 +1317,7 @@ _config_update(void) { /* weird profile or something? We should probably fill * with hardcoded defaults, or get from default previx */ - return; + return; } #define IFCFG(v) if ((_elm_config->config_version & 0xffff) < (v)) { #define IFCFGELSE } else { @@ -1334,6 +1334,28 @@ _config_update(void) COPYVAL(longpress_timeout); IFCFGEND; + IFCFG(0x0004); + +#define PREFS_IFACE_MODULE_STR "prefs>prefs_iface" + + const char *new = NULL; + if (!_elm_config->modules) + new = eina_stringshare_add(PREFS_IFACE_MODULE_STR); + else + { + if (!strstr(_elm_config->modules, PREFS_IFACE_MODULE_STR)) + new = eina_stringshare_printf + ("%s:%s", orig_modules, PREFS_IFACE_MODULE_STR); + } + + if (new) + { + eina_stringshare_del(_elm_config->modules); + _elm_config->modules = new; + } + + IFCFGEND; + #undef COPYSTR #undef COPYPTR #undef COPYVAL diff --git a/legacy/elementary/src/lib/elm_priv.h b/legacy/elementary/src/lib/elm_priv.h index db68df591f..511790b379 100644 --- a/legacy/elementary/src/lib/elm_priv.h +++ b/legacy/elementary/src/lib/elm_priv.h @@ -113,7 +113,7 @@ struct _Elm_Theme * the users config doesn't need to be wiped - simply new values need * to be put in */ -#define ELM_CONFIG_FILE_GENERATION 0x0003 +#define ELM_CONFIG_FILE_GENERATION 0x0004 #define ELM_CONFIG_VERSION ((ELM_CONFIG_EPOCH << 16) | \ ELM_CONFIG_FILE_GENERATION) /* NB: profile configuration files (.src) must have their