forked from enlightenment/enventor
config - place the enventor config foler in the XDG Config Home directory.
This commit is contained in:
parent
8c903986f3
commit
de5139f31c
1
README
1
README
|
@ -15,6 +15,7 @@ it does a lot.
|
|||
ecore (>= 1.8.0)
|
||||
edje (>= 1.8.0)
|
||||
eio (>= 1.8.0)
|
||||
efreet (>= 1.8.0)
|
||||
elementary (>= 1.8.0)
|
||||
|
||||
Please note that some features may not quite function correctly or completely on
|
||||
|
|
|
@ -67,7 +67,8 @@ static Eina_Bool
|
|||
config_load(config_data *cd)
|
||||
{
|
||||
char buf[PATH_MAX];
|
||||
snprintf(buf, sizeof(buf), "%s/.enventor/config.eet", getenv("HOME"));
|
||||
snprintf(buf, sizeof(buf), "%s/enventor/config.eet",
|
||||
efreet_config_home_get());
|
||||
Eet_File *ef = eet_open(buf, EET_FILE_MODE_READ);
|
||||
if (!ef)
|
||||
{
|
||||
|
@ -129,7 +130,7 @@ static void
|
|||
config_save(config_data *cd)
|
||||
{
|
||||
char buf[PATH_MAX];
|
||||
snprintf(buf, sizeof(buf), "%s/.enventor", getenv("HOME"));
|
||||
snprintf(buf, sizeof(buf), "%s/enventor", efreet_config_home_get());
|
||||
|
||||
//Create config folder if it doesn't exist.
|
||||
if (!ecore_file_exists(buf))
|
||||
|
@ -143,7 +144,8 @@ config_save(config_data *cd)
|
|||
}
|
||||
|
||||
//Save config file.
|
||||
snprintf(buf, sizeof(buf), "%s/.enventor/config.eet", getenv("HOME"));
|
||||
snprintf(buf, sizeof(buf), "%s/enventor/config.eet",
|
||||
efreet_config_home_get());
|
||||
Eet_File *ef = eet_open(buf, EET_FILE_MODE_WRITE);
|
||||
if (!ef)
|
||||
{
|
||||
|
|
|
@ -482,6 +482,7 @@ config_data_set(app_data *ad, int argc, char **argv)
|
|||
static void
|
||||
elm_setup()
|
||||
{
|
||||
elm_need_efreet();
|
||||
elm_config_profile_set("standard");
|
||||
|
||||
/* Recover the scale & theme since it will be reset by
|
||||
|
|
Loading…
Reference in New Issue