On 11/11/2010 10:32 AM, Enrico Forestieri wrote:
On Thu, Nov 11, 2010 at 04:59:01AM +0100, Enrico Forestieri wrote:
On Thu, Nov 11, 2010 at 02:57:48AM +0100, Vincent van Ravesteijn wrote:
I'd like you to guide me a bit in with respect to using the pipes
then. Detecting whether a pipe exists is indeed easy. However, I need
to add some public functions to the Server interface that relays to
LyXComm. Moreover, sending a new command over the pipe to the existing
application needs some of the client code.. right ?

If you can share your thoughts with me, I'd appreciate it.
Please find attached a rough patch as proof of concept. It has to be
improved in many respects, but already does the job. I tested it on
both *nix and windows (with mingw) and it works for me. Simply setup
the lyxpipe and when you run lyx with a filename as argument, it
will be opened in already running instance.
Here is another somewhat polished version.

The only thing lacking here is the preference stuff, but someone else could do that, if you wish.

Richard


Reply via email to