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:
Gustavo Sverzut Barbieri 2009-07-26 17:01:42 +00:00
parent d2467580cc
commit dd6ec8ed02
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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"))
{