utils: ensure an elementary config exists
This commit is contained in:
parent
3c601c1aef
commit
37d622752a
|
@ -162,11 +162,11 @@ utils_need_scale_wizard(void)
|
|||
if (config_xdg)
|
||||
{
|
||||
snprintf(path, sizeof(path) - 1,
|
||||
"%s/elementary", config_xdg);
|
||||
"%s/elementary/config/standard/base.cfg", config_xdg);
|
||||
}
|
||||
else
|
||||
{
|
||||
const char *suffix = "/.elementary";
|
||||
const char *suffix = "/.elementary/config/standard/base.cfg";
|
||||
char home[PATH_MAX - strlen(suffix)];
|
||||
|
||||
if (!homedir_get(home, sizeof(home)))
|
||||
|
|
Loading…
Reference in New Issue