forked from enlightenment/enlightenment
fix #217: enlightenment_start -profile <profile> blocks further profile changes.
We should just set E_CONF_PROFILE from command line option or e_config startup if we did not had this set before. This is because ecore_app_restart() will use the same parameters and profile will be there yet. SVN revision: 41500
This commit is contained in:
parent
d2467580cc
commit
dd6ec8ed02
|
@ -121,7 +121,8 @@ e_config_init(void)
|
|||
else
|
||||
_e_config_profile = strdup("default");
|
||||
}
|
||||
e_util_env_set("E_CONF_PROFILE", _e_config_profile);
|
||||
if (!getenv("E_CONF_PROFILE"))
|
||||
e_util_env_set("E_CONF_PROFILE", _e_config_profile);
|
||||
}
|
||||
|
||||
_e_config_gadcon_client_edd = E_CONFIG_DD_NEW("E_Config_Gadcon_Client", E_Config_Gadcon_Client);
|
||||
|
|
|
@ -302,7 +302,8 @@ main(int argc, char **argv)
|
|||
else if ((!strcmp(argv[i], "-profile")) && (i < (argc - 1)))
|
||||
{
|
||||
i++;
|
||||
e_util_env_set("E_CONF_PROFILE", argv[i]);
|
||||
if (!getenv("E_CONF_PROFILE"))
|
||||
e_util_env_set("E_CONF_PROFILE", argv[i]);
|
||||
}
|
||||
else if (!strcmp(argv[i], "-i-really-know-what-i-am-doing-and-accept-full-responsibility-for-it"))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue