extra: make filename depend on version
otherwise we are never getting updates.
This commit is contained in:
parent
c67d894cda
commit
2a17f517ad
|
@ -273,13 +273,16 @@ extra_theme_installed(Extra_Theme *theme)
|
||||||
EAPI char *
|
EAPI char *
|
||||||
extra_theme_install_path_get(Extra_Theme *theme)
|
extra_theme_install_path_get(Extra_Theme *theme)
|
||||||
{
|
{
|
||||||
|
Eina_Strbuf *buf;
|
||||||
char *path;
|
char *path;
|
||||||
|
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(theme, NULL);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(theme, NULL);
|
||||||
|
|
||||||
path = malloc(PATH_MAX * sizeof(char));
|
buf = eina_strbuf_new();
|
||||||
sprintf(path, "%s/.elementary/themes/%s.edj", eina_environment_home_get(), theme->id);
|
eina_strbuf_append(buf, elm_theme_user_dir_get());
|
||||||
|
eina_strbuf_append_printf(buf, "%s-%d.edj", theme->id, theme->version);
|
||||||
|
path = eina_strbuf_string_steal(buf);
|
||||||
|
eina_strbuf_free(buf);
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue