Re: Release?



On 9 Apr 2004, Tom von Schwerdtner wrote:

> I realize you have been somewhat busy with the events of the past
> few months, but I have to wonder...  Is a 0.1 going to be rolled
> anytime soon?  Any outstanding issues before it hits the streets?

The manpage backend did not work for me out of the box. I'm including
the patch I used to make things work. It also extends the hack using
locate to find all man pages on the system.

I also think that at least the text-indexer should work out of the
box. Right now the backend doesn't build, and when built anyway it
does not seem to work.

Kind regards,

Hans

Index: ManPagesBackend.cs
===================================================================
RCS file: /cvs/gnome/dashboard/backends/ManPagesBackend.cs,v
retrieving revision 1.16
diff -u -r1.16 ManPagesBackend.cs
--- ManPagesBackend.cs	4 Mar 2004 07:59:33 -0000	1.16
+++ ManPagesBackend.cs	11 Apr 2004 20:56:01 -0000
@@ -16,7 +16,7 @@
 using System.Text;
 using System.Text.RegularExpressions;
 
-[assembly:Dashboard.BackendFactory ("Dashboard.ManPage")]
+[assembly:Dashboard.BackendFactory ("Dashboard.ManPagesBackend")]
 
 namespace Dashboard {
 
@@ -29,12 +29,17 @@
 
 	class ManPagesBackend : BackendSimple
 	{
-		private const string MAN_PAGE_PATHS = "/usr/share/man/man1 /usr/share/man/man2 /usr/share/man/man3 /usr/share/man/man4 /usr/share/man/man5 /usr/share/man/man6 /usr/share/man/man7 /usr/share/man/man8 /usr/share/man/man9 /usr/share/man/mann";
+// 		private const string MAN_PAGE_PATHS = "/usr/share/man/man1 /usr/share/man/man2 /usr/share/man/man3 /usr/share/man/man4 /usr/share/man/man5 /usr/share/man/man6 /usr/share/man/man7 /usr/share/man/man8 /usr/share/man/man9 /usr/share/man/mann";
+// This is not really a path, but an argument to locate to find the
+// right pages, so this trick argument will do all the work for us...
+		private const string MAN_PAGE_PATHS = "/man/man";
 		private ArrayList manpages;
 
 		public override bool Startup ()
 		{
 			Name = "Manual Pages";
+
+			Console.WriteLine ("Manual Pages backend starting");
 
 			manpages = new ArrayList ();
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]