ecore_desktop_get_command can now return a list of commands if it needs to.

SVN revision: 26788
This commit is contained in:
David Walter Seikel 2006-10-25 10:25:15 +00:00
parent 5590223ae0
commit a1fac4a3da
1 changed files with 15 additions and 1 deletions

View File

@ -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)