From b40c8d43bf900f155164b124097182b193b57326 Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Wed, 2 Jun 2010 18:46:38 +0000 Subject: [PATCH] fix exec files with executables. fixes xdg-open fallback of websearch SVN revision: 49396 --- src/modules/everything/evry_util.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/modules/everything/evry_util.c b/src/modules/everything/evry_util.c index 8a786f3..1f0e4d1 100644 --- a/src/modules/everything/evry_util.c +++ b/src/modules/everything/evry_util.c @@ -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)) { int len; - tmp = eina_str_escape(file->path); - len = strlen(app->file) + strlen(tmp) + 2; + len = strlen(app->file) + strlen(file->path) + 4; 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_FREE(exe); - E_FREE(tmp); } else { -- 2.7.4