[tracker] tracker-control: Also control "lt-tracker" prefixed apps.



commit 228374382bf9a1104a599fade0b2eb9b310dd0c1
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Mar 24 17:12:00 2010 +0100

    tracker-control: Also control "lt-tracker" prefixed apps.
    
    This is usual when testing inside the source code dir.

 src/tracker-control/tracker-control.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-control/tracker-control.c b/src/tracker-control/tracker-control.c
index 5414a4d..e0d8575 100644
--- a/src/tracker-control/tracker-control.c
+++ b/src/tracker-control/tracker-control.c
@@ -331,7 +331,9 @@ main (int argc, char **argv)
 				gchar *basename;
 
 				basename = g_path_get_basename (strv[0]);
-				if (g_str_has_prefix (basename, "tracker") == TRUE &&
+
+				if ((g_str_has_prefix (basename, "tracker") == TRUE ||
+				     g_str_has_prefix (basename, "lt-tracker") == TRUE) &&
 				    g_str_has_suffix (basename, "-control") == FALSE) {
 					pid_t pid;
 



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