beagle r4617 - trunk/beagle/beagled/PidginQueryable
- From: dbera svn gnome org
- To: svn-commits-list gnome org
- Subject: beagle r4617 - trunk/beagle/beagled/PidginQueryable
- Date: Tue, 18 Mar 2008 20:21:41 +0000 (GMT)
Author: dbera
Date: Tue Mar 18 20:21:41 2008
New Revision: 4617
URL: http://svn.gnome.org/viewvc/beagle?rev=4617&view=rev
Log:
Check for the existence of the log dir in pidgin backend to determine whether to start indexing or wait.
Modified:
trunk/beagle/beagled/PidginQueryable/PidginQueryable.cs
Modified: trunk/beagle/beagled/PidginQueryable/PidginQueryable.cs
==============================================================================
--- trunk/beagle/beagled/PidginQueryable/PidginQueryable.cs (original)
+++ trunk/beagle/beagled/PidginQueryable/PidginQueryable.cs Tue Mar 18 20:21:41 2008
@@ -54,7 +54,9 @@
private void StartWorker()
{
bool gaim_exists = Directory.Exists (Path.Combine (PathFinder.HomeDir, ".gaim"));
+ gaim_exists = gaim_exists && Directory.Exists (Path.Combine (Path.Combine (PathFinder.HomeDir, ".gaim"), "logs"));
bool pidgin_exists = Directory.Exists (Path.Combine (PathFinder.HomeDir, ".purple"));
+ pidgin_exists = pidgin_exists && Directory.Exists (Path.Combine (Path.Combine (PathFinder.HomeDir, ".purple"), "logs"));
if (!pidgin_exists && !gaim_exists) {
GLib.Timeout.Add (polling_interval, new GLib.TimeoutHandler (CheckForExistence));
@@ -88,7 +90,9 @@
private bool CheckForExistence ()
{
bool gaim_exists = Directory.Exists (Path.Combine (PathFinder.HomeDir, ".gaim"));
+ gaim_exists = gaim_exists && Directory.Exists (Path.Combine (Path.Combine (PathFinder.HomeDir, ".gaim"), "logs"));
bool pidgin_exists = Directory.Exists (Path.Combine (PathFinder.HomeDir, ".purple"));
+ pidgin_exists = pidgin_exists && Directory.Exists (Path.Combine (Path.Combine (PathFinder.HomeDir, ".purple"), "logs"));
if (gaim_exists || pidgin_exists) {
this.Start ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]