[nautilus-sendto] main: Remove support for ancient evolution versions



commit aa74153c5b9fd448e40dffa895f63b23fa96b5f0
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jun 13 17:03:57 2013 +0200

    main: Remove support for ancient evolution versions

 src/nautilus-sendto.c |   20 +++-----------------
 1 files changed, 3 insertions(+), 17 deletions(-)
---
diff --git a/src/nautilus-sendto.c b/src/nautilus-sendto.c
index 1d86dde..83a544c 100644
--- a/src/nautilus-sendto.c
+++ b/src/nautilus-sendto.c
@@ -60,29 +60,15 @@ static const GOptionEntry entries[] = {
 static char *
 get_evo_cmd (void)
 {
-       char *tmp = NULL;
-       char *retval;
-       char *cmds[] = {
-               "evolution",
-               "evolution-2.0",
-               "evolution-2.2",
-               "evolution-2.4",
-               "evolution-2.6",
-               "evolution-2.8", /* for the future */
-               NULL};
-       guint i;
-
-       for (i = 0; cmds[i] != NULL; i++) {
-               tmp = g_find_program_in_path (cmds[i]);
-               if (tmp != NULL)
-                       break;
-       }
+       char *tmp, *retval;
 
+       tmp = g_find_program_in_path ("evolution");
        if (tmp == NULL)
                return NULL;
 
        retval = g_strdup_printf ("%s --component=mail %%s", tmp);
        g_free (tmp);
+
        return retval;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]