discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Error while building Preferences.app


From: Richard Frith-Macdonald
Subject: Re: Error while building Preferences.app
Date: Thu, 22 May 2008 08:17:09 +0100


On 22 May 2008, at 01:59, Yen-Ju Chen wrote:

As for services, the first issue you mentioned is to 'allow GNUstep to
use command-line or script as service' and the second one is to 'allow
non-GNUstep application to use GNUstep service'.
I have a small application for the first issue written a few months ago:
http://svn.gna.org/viewcvs/etoile/branches/yjchen/ScriptServices/
See README for details. It basically passes data from GNUstep
application to scripts.

There is also the example provided with GNUstep
http://svn.gna.org/viewcvs/gnustep/tests/examples/trunk/gui/ExampleService/
which shows a few services including using an external program/script to open a URL.

For the second issue, you need a way to access GNUstep services with
non-GNUstep application since they have no menu for GNUstep services.
Then you need an GNUstep application to copy the selected text from
non-GNUstep application through X-window protocol and pass it to
GNUstep application. I also have a small tool to do such things, but
it is rather complicated to set it up:

Wouldn't the simplest solution be to write a trivial GNUstep app to accept tcp/ip connections with service requests on them, and pass them to the normal service mechanism, then modify your non-gnustep app to talk to that daemon. The base library comes with XML/RPC support, and the WebServer library lets your app act as a web server, so the daemon could be an XML/RPC server process and the non-gnustep app could use a standard XML/RPC library to invoke services. Of course, if Etoile already provides a ready built daemon and library code to access it, then that should make things really easy.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]