This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Emacs and dbus-send


nyc4bos@aol.com writes:

> I was trying out Emacs and dbus-send and ran int a minor
> problem.
>
> I sent the following:
>
> dbus-send --session --print-reply --dest=org.gnu.emacs.TextEditor \
>    /org/gnu/emacs/TextEditor org.gnu.emacs.TextEditor
>
> It sucessfully created an emacs process.
>
> However, I got the message:
>
> Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
>
>
> My .service file contains:
>
> [D-BUS Service]
> Name=org.gnu.emacs.TextEditor
> Exec=/usr/bin/emacs-x11
>
> Is the emacs dbus binary setup to send replies?

Emacs does not listen to the org.gnu.emacs.TextEditor service by
default. It was just given as example in the doc. If you want to let
Emacs reply to a method, you must load a file at startup, which calls
dbus-register-method for the requested interface/method.

> Thanks.

Best regards, Michael.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]