forked from enlightenment/terminology
fix escaping of file in helper run in 1 missed case
this fixes T814
This commit is contained in:
parent
aef172b4c5
commit
4891932444
|
@ -740,10 +740,15 @@ _smart_media_clicked(void *data, Evas_Object *obj, void *info EINA_UNUSED)
|
||||||
cmd = config->helper.local.general;
|
cmd = config->helper.local.general;
|
||||||
if (cmd)
|
if (cmd)
|
||||||
{
|
{
|
||||||
char buf[PATH_MAX];
|
char buf[PATH_MAX], *escaped;
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "%s %s", cmd, file);
|
escaped = ecore_file_escape_name(file);
|
||||||
ecore_exe_run(buf, NULL);
|
if (escaped)
|
||||||
|
{
|
||||||
|
snprintf(buf, sizeof(buf), "%s %s", cmd, escaped);
|
||||||
|
ecore_exe_run(buf, NULL);
|
||||||
|
free(escaped);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue