forked from enlightenment/enlightenment
support gadget versions with [X-Gadget-Version] .desktop entry
fix T6397
This commit is contained in:
parent
9bba6e80e4
commit
35f705a621
|
@ -103,8 +103,13 @@ static char *
|
|||
sandbox_name(const char *filename)
|
||||
{
|
||||
Efreet_Desktop *ed = eina_hash_find(sandbox_gadgets, filename);
|
||||
char *version, buf[1024];
|
||||
|
||||
return strdup(ed->name);
|
||||
if (!ed->x) return strdup(ed->name);
|
||||
version = eina_hash_find(ed->x, "X-Gadget-Version");
|
||||
if (!version) return strdup(ed->name);
|
||||
snprintf(buf, sizeof(buf), "%s (v%s)", ed->name, version);
|
||||
return strdup(buf);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue