gnome-main-menu and tracker desktop search engine
- From: Tomasz Sterna <tomek xiaoka com>
- To: Jim Krehl <jimmyk novell com>, Scott Reeves <sreeves novell com>
- Cc: Gnome Devel List <gnome-devel-list gnome org>
- Subject: gnome-main-menu and tracker desktop search engine
- Date: Tue, 09 Jan 2007 19:46:52 +0100
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]