* Does org-nofity uses dbus?
@ 2016-06-21 6:31 Xi Shen
2016-06-21 8:45 ` Fabrice Popineau
0 siblings, 1 reply; 8+ messages in thread
From: Xi Shen @ 2016-06-21 6:31 UTC (permalink / raw)
To: Emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 582 bytes --]
Hi,
I got below error after I called (org-notify-start). It seems the
dbus-error happens very close to the task notification. I wonder if
org-notify uses dbus.
Error: (dbus-error "No connection to bus" :session)
Warning: notification for "Go to dental in 30 mins." behind schedule!
Error: (dbus-error "No connection to bus" :session) [2 times]
Warning: notification for "Go to dental in 30 mins." behind schedule!
Error: (dbus-error "No connection to bus" :session) [2 times]
I am using Emacs on Windows, and there's no dbus on Windows...
Thanks,
David
--
Thanks,
David S.
[-- Attachment #2: Type: text/html, Size: 940 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Does org-nofity uses dbus?
2016-06-21 6:31 Does org-nofity uses dbus? Xi Shen
@ 2016-06-21 8:45 ` Fabrice Popineau
2016-06-21 14:14 ` Xi Shen
0 siblings, 1 reply; 8+ messages in thread
From: Fabrice Popineau @ 2016-06-21 8:45 UTC (permalink / raw)
To: Xi Shen; +Cc: Emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 961 bytes --]
2016-06-21 8:31 GMT+02:00 Xi Shen <davidshen84@gmail.com>:
> Hi,
>
> I got below error after I called (org-notify-start). It seems the
> dbus-error happens very close to the task notification. I wonder if
> org-notify uses dbus.
>
> Error: (dbus-error "No connection to bus" :session)
> Warning: notification for "Go to dental in 30 mins." behind schedule!
> Error: (dbus-error "No connection to bus" :session) [2 times]
> Warning: notification for "Go to dental in 30 mins." behind schedule!
> Error: (dbus-error "No connection to bus" :session) [2 times]
>
> I am using Emacs on Windows, and there's no dbus on Windows...
>
>
It seems so, yes: org-notify calls notifications-notify from the emacs
notifications.el library.
Clearly, notifications.el relies on dbus.
However, if you are using Mingw64, there is a dbus package which should
provide
what is needed. Unfortunately, I tried it and can't tell yet how to
configure it or if it
even works.
Fabrice
[-- Attachment #2: Type: text/html, Size: 1582 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Does org-nofity uses dbus?
2016-06-21 8:45 ` Fabrice Popineau
@ 2016-06-21 14:14 ` Xi Shen
2016-06-21 14:25 ` Fabrice Popineau
0 siblings, 1 reply; 8+ messages in thread
From: Xi Shen @ 2016-06-21 14:14 UTC (permalink / raw)
To: fabrice.popineau; +Cc: Emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1500 bytes --]
Yeah...getting dbus to work on Windows will be hard. Maybe we should
consider using some other ways to display a notification on Windows.
E.g. On Windows/Cygwin environment, org-notify should use a command line
tool to show a notification in the Windows notification area.
But I wonder how to deploy this command line tool with Emacs system...any
suggestions/ideas?
Thanks,
David
On Tue, Jun 21, 2016 at 4:45 PM Fabrice Popineau <
fabrice.popineau@supelec.fr> wrote:
> 2016-06-21 8:31 GMT+02:00 Xi Shen <davidshen84@gmail.com>:
>
>> Hi,
>>
>> I got below error after I called (org-notify-start). It seems the
>> dbus-error happens very close to the task notification. I wonder if
>> org-notify uses dbus.
>>
>> Error: (dbus-error "No connection to bus" :session)
>> Warning: notification for "Go to dental in 30 mins." behind schedule!
>> Error: (dbus-error "No connection to bus" :session) [2 times]
>> Warning: notification for "Go to dental in 30 mins." behind schedule!
>> Error: (dbus-error "No connection to bus" :session) [2 times]
>>
>> I am using Emacs on Windows, and there's no dbus on Windows...
>>
>>
> It seems so, yes: org-notify calls notifications-notify from the emacs
> notifications.el library.
> Clearly, notifications.el relies on dbus.
>
> However, if you are using Mingw64, there is a dbus package which should
> provide
> what is needed. Unfortunately, I tried it and can't tell yet how to
> configure it or if it
> even works.
>
>
> Fabrice
>
> --
Thanks,
David S.
[-- Attachment #2: Type: text/html, Size: 2690 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Does org-nofity uses dbus?
2016-06-21 14:14 ` Xi Shen
@ 2016-06-21 14:25 ` Fabrice Popineau
2016-06-22 12:16 ` Xi Shen
0 siblings, 1 reply; 8+ messages in thread
From: Fabrice Popineau @ 2016-06-21 14:25 UTC (permalink / raw)
To: Xi Shen; +Cc: Emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 250 bytes --]
Le 21 juin 2016 16:14, "Xi Shen" <davidshen84@gmail.com> a écrit :
>
> Yeah...getting dbus to work on Windows will be hard.
Actually, not so much. Dbus does work on windows. It doesn't work right now
on emacs. I'm looking into it.
Fabrice
[-- Attachment #2: Type: text/html, Size: 387 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Does org-nofity uses dbus?
2016-06-21 14:25 ` Fabrice Popineau
@ 2016-06-22 12:16 ` Xi Shen
2016-06-22 16:45 ` Nick Dokos
2016-06-22 17:02 ` Fabrice Popineau
0 siblings, 2 replies; 8+ messages in thread
From: Xi Shen @ 2016-06-22 12:16 UTC (permalink / raw)
To: Fabrice Popineau; +Cc: Emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 782 bytes --]
Well~that's good news. But I think dbus requires X11 to work. But in Cygwin
environment, people usually do not configure a full X11 environment.
Besides, for org-notify, could dbus help it playing a notification sound on
Windows? Or popup a notification message?
So what I am thinking is to get some Windows native behavior for org-notify
on Windows/Cygwin environment.
On Tue, Jun 21, 2016 at 10:25 PM Fabrice Popineau <
fabrice.popineau@centralesupelec.fr> wrote:
>
> Le 21 juin 2016 16:14, "Xi Shen" <davidshen84@gmail.com> a écrit :
> >
> > Yeah...getting dbus to work on Windows will be hard.
>
> Actually, not so much. Dbus does work on windows. It doesn't work right
> now on emacs. I'm looking into it.
>
> Fabrice
>
--
Thanks,
David S.
[-- Attachment #2: Type: text/html, Size: 1341 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Does org-nofity uses dbus?
2016-06-22 12:16 ` Xi Shen
@ 2016-06-22 16:45 ` Nick Dokos
2016-06-22 17:02 ` Fabrice Popineau
1 sibling, 0 replies; 8+ messages in thread
From: Nick Dokos @ 2016-06-22 16:45 UTC (permalink / raw)
To: emacs-orgmode
Xi Shen <davidshen84@gmail.com> writes:
> Well~that's good news. But I think dbus requires X11 to work. But in Cygwin environment, people usually
> do not configure a full X11 environment.
>
I don't think that's true: dbus is "just" a message bus - an IPC
mechanism that different processes use to communicate. It has nothing to
do with X11 or any other windowing protocol.
The dbus-daemon manual page says:
The systemwide daemon is largely used for broadcasting system events, such as changes
to the printer queue, or adding/removing devices.
The per-session daemon is used for various interprocess communication among desktop
applications (however, it is not tied to X or the GUI in any way).
What makes you think that it requires X11?
> Besides, for org-notify, could dbus help it playing a notification sound on Windows? Or popup a
> notification message?
>
Sure it could: you send a message on the dbus saying "play a sound" and some other
process listening on the dbus gets the message and plays a sound.
> So what I am thinking is to get some Windows native behavior for org-notify on Windows/Cygwin
> environment.
>
Bad idea imo.
> On Tue, Jun 21, 2016 at 10:25 PM Fabrice Popineau <fabrice.popineau@centralesupelec.fr> wrote:
>
> Le 21 juin 2016 16:14, "Xi Shen" <davidshen84@gmail.com> a écrit :
> >
> > Yeah...getting dbus to work on Windows will be hard.
>
> Actually, not so much. Dbus does work on windows. It doesn't work right now on emacs. I'm looking
> into it.
>
> Fabrice
>
> --
>
> Thanks,
> David S.
>
--
Nick
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Does org-nofity uses dbus?
2016-06-22 12:16 ` Xi Shen
2016-06-22 16:45 ` Nick Dokos
@ 2016-06-22 17:02 ` Fabrice Popineau
2016-06-23 13:12 ` Xi Shen
1 sibling, 1 reply; 8+ messages in thread
From: Fabrice Popineau @ 2016-06-22 17:02 UTC (permalink / raw)
To: Xi Shen; +Cc: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1303 bytes --]
2016-06-22 14:16 GMT+02:00 Xi Shen <davidshen84@gmail.com>:
> Well~that's good news. But I think dbus requires X11 to work. But in
> Cygwin environment, people usually do not configure a full X11 environment.
>
No, dbus doesn't require X11 to work. Neither does emacs require Cygwin to
work.
Actually, Emacs compiles as a native Windows application (using MinGW32 or
MinGW64) and it is also the case of dbus.
> Besides, for org-notify, could dbus help it playing a notification sound
> on Windows? Or popup a notification message?
>
>
I guess it will work the same way it does elsewhere.
> So what I am thinking is to get some Windows native behavior for
> org-notify on Windows/Cygwin environment.
>
>
I too think that a native, session only module that will provide the same
interface as dbus could be interesting
for Windows users. However, that shouldn't prevent those who want to use
dbus to use it.
AFAIU, using dbus, you could have a distant running emacs (ssh) session and
get notifications on your local desktop,
provided the right setup.
Well, browsing the source code, I see that Eli Zaretskii has already
implemented native win32 tray notifications.
They are a small subset of the dbus notifications.
However, he made them exclusive with dbus. I don't see the reason yet.
Fabrice
[-- Attachment #2: Type: text/html, Size: 2226 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Does org-nofity uses dbus?
2016-06-22 17:02 ` Fabrice Popineau
@ 2016-06-23 13:12 ` Xi Shen
0 siblings, 0 replies; 8+ messages in thread
From: Xi Shen @ 2016-06-23 13:12 UTC (permalink / raw)
To: Fabrice Popineau; +Cc: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1611 bytes --]
I also think it is a good idea to add some functions in Emacs for Win32
platform, and let other's used those functions from elisp. Thanks~
On Thu, Jun 23, 2016 at 1:02 AM Fabrice Popineau <fabrice.popineau@gmail.com>
wrote:
> 2016-06-22 14:16 GMT+02:00 Xi Shen <davidshen84@gmail.com>:
>
>> Well~that's good news. But I think dbus requires X11 to work. But in
>> Cygwin environment, people usually do not configure a full X11 environment.
>>
>
> No, dbus doesn't require X11 to work. Neither does emacs require Cygwin
> to work.
> Actually, Emacs compiles as a native Windows application (using MinGW32 or
> MinGW64) and it is also the case of dbus.
>
>
>> Besides, for org-notify, could dbus help it playing a notification sound
>> on Windows? Or popup a notification message?
>>
>>
> I guess it will work the same way it does elsewhere.
>
>
>
>> So what I am thinking is to get some Windows native behavior for
>> org-notify on Windows/Cygwin environment.
>>
>>
> I too think that a native, session only module that will provide the same
> interface as dbus could be interesting
> for Windows users. However, that shouldn't prevent those who want to use
> dbus to use it.
>
> AFAIU, using dbus, you could have a distant running emacs (ssh) session
> and get notifications on your local desktop,
> provided the right setup.
>
> Well, browsing the source code, I see that Eli Zaretskii has already
> implemented native win32 tray notifications.
> They are a small subset of the dbus notifications.
> However, he made them exclusive with dbus. I don't see the reason yet.
>
> Fabrice
>
--
Thanks,
David S.
[-- Attachment #2: Type: text/html, Size: 3308 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-06-23 13:12 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-21 6:31 Does org-nofity uses dbus? Xi Shen
2016-06-21 8:45 ` Fabrice Popineau
2016-06-21 14:14 ` Xi Shen
2016-06-21 14:25 ` Fabrice Popineau
2016-06-22 12:16 ` Xi Shen
2016-06-22 16:45 ` Nick Dokos
2016-06-22 17:02 ` Fabrice Popineau
2016-06-23 13:12 ` Xi Shen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).