Make gnome-search-tool run in background
Ubuntu 12.04
I am writing a bash script and I need to cause the below command to run gnome-search-tool in background so that gnome-search-tool is entirely invisible to and out of the way of the user.
gnome-search-tool --named=galaxy9 --start
The objective here is to place a script in the Startup Folder which forces the gnome-search-tool application at login to create it's search index so that the first search of the day the user performs will be fast, rather than slow, because the indexing will already be done. Does anyone know how to accomplish this???
Trying to use the synapse or synapse-indicator search apps just isn't working out for me at all.
I am planning on running a second script which will give the above script time enough to complete's it's indexing of my 2T hardrive and then kill the above gnome-search-tool process (hopefully) with the command:
kill $(ps aux | grep '[g]nome-search-tool' | awk '{print $2}')
I'm planning on doing this with a second script because I haven't figured out yet how I can have the same script accomplish this when the indexing is completed since gnome-search-tool never returns control to the first script.
Thanks for your thoughts and suggestions!!!
|