From a1fac4a3da7efc318774a5545ea4a49e1135caf3 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 25 Oct 2006 10:25:15 +0000 Subject: [PATCH] ecore_desktop_get_command can now return a list of commands if it needs to. SVN revision: 26788 --- src/bin/e_apps.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/bin/e_apps.c b/src/bin/e_apps.c index beb90fe8a..bd4f82192 100644 --- a/src/bin/e_apps.c +++ b/src/bin/e_apps.c @@ -649,7 +649,21 @@ e_app_exec(E_App *a, int launch_id) original = a; if (a->desktop) - command = ecore_desktop_get_command(a->desktop, NULL, 1); + { + Ecore_List *commands; + + /* We are not passing a list of files, so we only expect one command. */ + commands = ecore_desktop_get_command(a->desktop, NULL, 1); + if (commands) + { + char *temp; + + temp = ecore_list_first(commands); + if (temp) + command = strdup(temp); + ecore_list_destroy(commands); + } + } else command = strdup(a->exe); if (!command)