summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-09-25 23:53:08 +0900
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-10-04 09:37:15 -0400
commitc27e6ee3d495533a2131887a1281add00df99a5f (patch)
treeece3075944512fa5175583d34feb3bbefca25b41
parent1609b454118427b14d27cba411b72aee2c587d08 (diff)
e exec - fix exec of enlightenment_open to use actual e prefix
so this code path was using the COMPILED IN prefix like broken old-school unix apps that cannopt be relocated. efl and e have runtime prefix detection so use it properly. stop doing things the broken way just because people have written broken code for 30+ years and continue to. we don't do that in e/efl land. @fix
-rw-r--r--src/bin/e_exec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/e_exec.c b/src/bin/e_exec.c
index 3078f5022..d9f29fc8b 100644
--- a/src/bin/e_exec.c
+++ b/src/bin/e_exec.c
@@ -505,10 +505,11 @@ _e_exec_cb_exec(void *data, Efreet_Desktop *desktop, char *exec, int remaining)
505 else if (desktop && desktop->url) 505 else if (desktop && desktop->url)
506 { 506 {
507 char *sb; 507 char *sb;
508 size_t size = 4096, len = sizeof(E_BINDIR "/enlightenment_open ") - 1; 508 size_t size = 65536, len;
509 509
510 sb = malloc(size); 510 sb = malloc(size);
511 memcpy(sb, E_BINDIR "/enlightenment_open ", len); 511 snprintf(sb, size, "%s/enlightenment_open ", e_prefix_bin_get());
512 len = strlen(sb);
512 sb = e_util_string_append_quoted(sb, &size, &len, desktop->url); 513 sb = e_util_string_append_quoted(sb, &size, &len, desktop->url);
513 exe = ecore_exe_run(sb, inst); 514 exe = ecore_exe_run(sb, inst);
514 free(sb); 515 free(sb);