Good suggestions .... so I did some digging around to see how I could
implement your suggestions and have come to a small problem. Hopefully you
guys are able to guide me to the light..

If I'm understanding this correctly, one can add ApplicationItem as a
supported item by simply adding the type to the list returned in
SupportedItemTypes(). That works out, the problem comes when
we attempt to look for a man page on the ApplicationItem.

As far as I can tell, these are the properties accessible: Name,
Description, Icon, Exec . It doesn't seem like any of these would give me a
solid keyword to look up the man page by. In the case of "Synaptic" for
example, Name = "Synaptic Package Manager", Exec = "gksu /usr/sbin/synaptic"
. I could throw in some basic heuristics to parse out the "synaptic" bit in
the Exec string and what not but this string seems to vary alot within the
index of ApplicationItems - some don't gksu, some have other parameters,
etc, etc.

I guess ideally it would be nice to have a sure way of accessing the actual
name of binary file that will be run as the ApplicationItem (eg. "synaptic"
rather than "gksu") since that's what man usually uses for the man page name
(or at least something that can be thrown at apropos or man -k). I looked
inside ApplicationItem but I didn't find anything public that could be put
to use.

Any ideas?


On Sun, Sep 14, 2008 at 4:17 PM, Alex Launi <[EMAIL PROTECTED]> wrote:

> My couple of suggestions,  since we already have an ApplicationItem source,
> is there any way of mapping these pages to their application item? So say
> synaptic, what if you just had a "Read Manual" action, that checked if there
> was a man page for that item, and then allowed you to open it? Or maybe even
> better, keep your current functionality for apps that aren't indexed, like
> terminal apps and stuff, but make ApplicationItems also supported. I also
> like "Read Manual" over "View Manual". Just a couple of ideas to think
> about, cool plugin! When you think it's ready let us know and we can merge
> it into the community repository.
>
> --
> --Alex Launi
>
>
--
J. Carlos Navea
http://www.loconet.ca/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GNOME Do" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/gnome-do?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to