fix exec files with executables. fixes xdg-open fallback of websearch

SVN revision: 49396
This commit is contained in:
Hannes Janetzek 2010-06-02 18:46:38 +00:00
parent 9a3095a718
commit b40c8d43bf
1 changed files with 2 additions and 4 deletions

View File

@ -662,13 +662,11 @@ evry_util_exec_app(const Evry_Item *it_app, const Evry_Item *it_file)
if (file && evry_file_path_get(file)) if (file && evry_file_path_get(file))
{ {
int len; int len;
tmp = eina_str_escape(file->path); len = strlen(app->file) + strlen(file->path) + 4;
len = strlen(app->file) + strlen(tmp) + 2;
exe = malloc(len); exe = malloc(len);
snprintf(exe, len, "%s %s", app->file, tmp); snprintf(exe, len, "%s \'%s\'", app->file, file->path);
e_exec(zone, NULL, exe, NULL, NULL); e_exec(zone, NULL, exe, NULL, NULL);
E_FREE(exe); E_FREE(exe);
E_FREE(tmp);
} }
else else
{ {