beagle r4795 - trunk/beagle/search/Beagle.Search
- From: dbera svn gnome org
- To: svn-commits-list gnome org
- Subject: beagle r4795 - trunk/beagle/search/Beagle.Search
- Date: Sun, 29 Jun 2008 17:19:57 +0000 (UTC)
Author: dbera
Date: Sun Jun 29 17:19:57 2008
New Revision: 4795
URL: http://svn.gnome.org/viewvc/beagle?rev=4795&view=rev
Log:
If DBUS session bus is not found, print a helpful message and then exit instead of crashing. Distros should make beagle-search depend on dbus-x11.
Modified:
trunk/beagle/search/Beagle.Search/Driver.cs
Modified: trunk/beagle/search/Beagle.Search/Driver.cs
==============================================================================
--- trunk/beagle/search/Beagle.Search/Driver.cs (original)
+++ trunk/beagle/search/Beagle.Search/Driver.cs Sun Jun 29 17:19:57 2008
@@ -91,7 +91,14 @@
public static void Main (string[] args)
{
- BusG.Init ();
+ try {
+ // Init DBus
+ BusG.Init ();
+ } catch (Exception e) {
+ // Lack of specific exception
+ Log.Error (e, "Failed to access dbus session bus. Make sure dbus session bus is running and the environment variable DBUS_SESSION_BUS_ADDRESS is set.");
+ Environment.Exit (1);
+ }
string query = ParseArgs (args);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]