beagle-query prints an ugly backtrace when no DBUS session environment variables are set. We should catch DBusException's seperately and provide more user-friendly output. http://bugs.gnome.org/show_bug.cgi?id=167755 Index: Query.cs =================================================================== RCS file: /cvs/gnome/beagle/tools/Query.cs,v retrieving revision 1.35 diff -u -B -r1.35 Query.cs --- Query.cs 15 Jan 2005 05:35:02 -0000 1.35 +++ Query.cs 17 Feb 2005 23:15:25 -0000 @@ -147,6 +147,9 @@ try { query = Beagle.Factory.NewQuery (); + } catch (DBus.DBusException e) { + Console.WriteLine ("Could not query. You probably don't have D-BUS set up properly.\nThe query failed with error: {0}", e.Message); + System.Environment.Exit (-1); } catch (Exception e) { if (e.ToString ().IndexOf ("com.novell.Beagle") != -1) { Console.WriteLine ("Could not query. The Beagle daemon is probably not running, or maybe you\ndon't have D-BUS set up properly.");