forked from enlightenment/enlightenment
ecore_desktop_get_command can now return a list of commands if it needs to.
SVN revision: 26788
This commit is contained in:
parent
5590223ae0
commit
a1fac4a3da
|
@ -649,7 +649,21 @@ e_app_exec(E_App *a, int launch_id)
|
||||||
original = a;
|
original = a;
|
||||||
|
|
||||||
if (a->desktop)
|
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
|
else
|
||||||
command = strdup(a->exe);
|
command = strdup(a->exe);
|
||||||
if (!command)
|
if (!command)
|
||||||
|
|
Loading…
Reference in New Issue