Gnome Main Menu supports choosing search engine frontend
via /desktop/gnome/applications/main-menu/search_command gConf key.
That's neat.

I do not use Beagle but Tracker, so I changed it's value to
"tracker-search-tool SEARCH_STRING". Looks good, but there's a
showstopper. The Beagle is hardcoded in Main Menu.
There is main_menu_engine_search_available() function in
main-menu/src/main-menu-engine.c, that checks for Beagle. If it isn't
present, the search item is not shown in main menu, rendering gconf
search_command useless.

The simplest possible "solution" is to disable the whole check. See
attached patch. ;-)

-- 
Tomasz Sterna
Xiaoka Grp.  http://www.xiaoka.com/
diff -ur gnome-main-menu.org/main-menu/src/main-menu-engine.c gnome-main-menu/main-menu/src/main-menu-engine.c
--- gnome-main-menu.org/main-menu/src/main-menu-engine.c	2007-01-09 19:20:42.000000000 +0100
+++ gnome-main-menu/main-menu/src/main-menu-engine.c	2007-01-09 19:22:37.000000000 +0100
@@ -114,7 +114,7 @@
 gboolean
 main_menu_engine_search_available (MainMenuEngine * engine)
 {
-	const gchar *beagle_home;
+/*	const gchar *beagle_home;
 	gchar *socket_dir;
 	gchar *socket_path;
 
@@ -157,7 +157,7 @@
 
 		g_free (remote_storage_dir);
 
-		/* There's a newline at the end that we want to strip off */
+		* There's a newline at the end that we want to strip off *
 		tmp = strrchr (socket_dir, '\n');
 
 		if (tmp != NULL)
@@ -185,7 +185,7 @@
 	}
 
 	g_free (socket_path);
-
+*/
 	return TRUE;
 }
 
_______________________________________________
gnome-devel-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-devel-list

Reply via email to