ecore_desktop_get_command can now return a list of commands if it needs to.
authorDavid Walter Seikel <onefang@gmail.com>
Wed, 25 Oct 2006 10:25:15 +0000 (10:25 +0000)
committerDavid Walter Seikel <onefang@gmail.com>
Wed, 25 Oct 2006 10:25:15 +0000 (10:25 +0000)
SVN revision: 26788

src/bin/e_apps.c

index beb90fe..bd4f821 100644 (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)