Patch by: Matthias Clasen <mclasen@redhat.com>

2007-12-06  Jens Granseuer  <jensgr@gmx.net>

	Patch by: Matthias Clasen <mclasen@redhat.com>

	As a stop-gap measure, until we've got a proper search interface,
	simply check whether beagle or tracker are installed, and prefer them
	to gnome-search-tool if they are (bug #497802)

	* gnome-settings-multimedia-keys.c: (do_action): prefer beagle and
	tracker to gnome-search-tool

svn path=/trunk/; revision=8317
This commit is contained in:
Jens Granseuer 2007-12-06 22:07:34 +00:00 committed by Jens Granseuer
parent 67c1c458bc
commit 4101101650
2 changed files with 19 additions and 1 deletions

View file

@ -1,3 +1,14 @@
2007-12-06 Jens Granseuer <jensgr@gmx.net>
Patch by: Matthias Clasen <mclasen@redhat.com>
As a stop-gap measure, until we've got a proper search interface,
simply check whether beagle or tracker are installed, and prefer them
to gnome-search-tool if they are (bug #497802)
* gnome-settings-multimedia-keys.c: (do_action): prefer beagle and
tracker to gnome-search-tool
2007-12-06 Jens Granseuer <jensgr@gmx.net>
* gnome-settings-xsettings.c: use new setting from libgnome to make

View file

@ -701,7 +701,14 @@ do_action (Acme *acme, int type)
g_free (cmd);
break;
case SEARCH_KEY:
execute (acme, "gnome-search-tool", FALSE, FALSE);
cmd = NULL;
if ((cmd = g_find_program_in_path ("beagle-search")))
execute (acme, "beagle-search", FALSE, FALSE);
else if ((cmd = g_find_program_in_path ("tracker-search-tool")))
execute (acme, "tracker-search-tool", FALSE, FALSE);
else
execute (acme, "gnome-search-tool", FALSE, FALSE);
g_free (cmd);
break;
case EMAIL_KEY:
do_mail_action (acme);