* notifications when dbus fails prevents fetching email/news
@ 2012-12-07 9:58 Adam Sjøgren
2012-12-07 10:44 ` Steinar Bang
2012-12-07 11:34 ` Michael Albinus
0 siblings, 2 replies; 6+ messages in thread
From: Adam Sjøgren @ 2012-12-07 9:58 UTC (permalink / raw)
To: ding
Hi.
Recently I added:
(add-hook 'gnus-after-getting-new-news-hook 'gnus-notifications)
to my configuration to get nice pop ups when new email arrives. It works
very well when I start Emacs at home.
If I ssh -X into my machine at home and start Emacs, however, then I
have a problem - when I try to get email/news, I get this error
flashing:
apply: D-Bus error: "No connection to bus", :session
and email/news isn't fetched.
Would it be possible for gnus-notifications to either only warn or do
nothing, if the notification mechanism doesn't exist/work.
Or maybe I just need some extra magic to get DBus working when ssh -X'ing?
Best regards,
Adam
--
"Let's have a pointless round of applause." Adam Sjøgren
asjo@koldfront.dk
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: notifications when dbus fails prevents fetching email/news
2012-12-07 9:58 notifications when dbus fails prevents fetching email/news Adam Sjøgren
@ 2012-12-07 10:44 ` Steinar Bang
2012-12-07 11:34 ` Michael Albinus
1 sibling, 0 replies; 6+ messages in thread
From: Steinar Bang @ 2012-12-07 10:44 UTC (permalink / raw)
To: ding
>>>>> asjo@koldfront.dk (Adam Sjøgren):
> Or maybe I just need some extra magic to get DBus working when ssh -X'ing?
D-bus and "ssh -X"/"ssh -Y" have bugs filed against it.
https://bugs.freedesktop.org/show_bug.cgi?id=32509
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12112
For my part, the most annoying thing have been that emacs started with X
keeps the ssh session hanging when I log out.
Hm... the bottom URL above lists a workaround, setting
DBUS_SESSION_BUS_ADDRESS to something bogus, before starting emacs.
That would perhaps work for my issue (something to try), but not yours,
since you want D-bus to actually work...?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: notifications when dbus fails prevents fetching email/news
2012-12-07 9:58 notifications when dbus fails prevents fetching email/news Adam Sjøgren
2012-12-07 10:44 ` Steinar Bang
@ 2012-12-07 11:34 ` Michael Albinus
2012-12-07 12:40 ` Adam Sjøgren
1 sibling, 1 reply; 6+ messages in thread
From: Michael Albinus @ 2012-12-07 11:34 UTC (permalink / raw)
To: Adam Sjøgren; +Cc: ding
asjo@koldfront.dk (Adam Sjøgren) writes:
> Hi.
Hi,
> Or maybe I just need some extra magic to get DBus working when ssh -X'ing?
Does it help, if you call your remote emacs like
env DBUS_SESSION_BUS_ADDRESS="autolaunch:scope=install-path" emacs ...
> Best regards,
>
> Adam
Best regards, Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: notifications when dbus fails prevents fetching email/news
2012-12-07 11:34 ` Michael Albinus
@ 2012-12-07 12:40 ` Adam Sjøgren
2012-12-07 16:55 ` Michael Albinus
0 siblings, 1 reply; 6+ messages in thread
From: Adam Sjøgren @ 2012-12-07 12:40 UTC (permalink / raw)
To: ding
On Fri, 07 Dec 2012 12:34:18 +0100, Michael wrote:
> Does it help, if you call your remote emacs like
> env DBUS_SESSION_BUS_ADDRESS="autolaunch:scope=install-path" emacs ...
Yes, it makes the problem go away (I don't get any notifications, but
that isn't important, to me).
I do get this warning when I start emacs like that:
** (emacs:6132): WARNING **: Unknown or unsupported transport
`autolaunch' for address `autolaunch:scope=install-path'
Thanks!
Adam
--
"Yeah, I'm afraid I'm gonna have to go ahead and give Adam Sjøgren
this a 9.7 on the "whatever" scale." asjo@koldfront.dk
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: notifications when dbus fails prevents fetching email/news
2012-12-07 12:40 ` Adam Sjøgren
@ 2012-12-07 16:55 ` Michael Albinus
2012-12-13 16:37 ` Adam Sjøgren
0 siblings, 1 reply; 6+ messages in thread
From: Michael Albinus @ 2012-12-07 16:55 UTC (permalink / raw)
To: Adam Sjøgren; +Cc: ding
asjo@koldfront.dk (Adam Sjøgren) writes:
>> Does it help, if you call your remote emacs like
>
>> env DBUS_SESSION_BUS_ADDRESS="autolaunch:scope=install-path" emacs ...
>
> Yes, it makes the problem go away (I don't get any notifications, but
> that isn't important, to me).
>
> I do get this warning when I start emacs like that:
>
> ** (emacs:6132): WARNING **: Unknown or unsupported transport
> `autolaunch' for address `autolaunch:scope=install-path'
Well, the scope is a rather new feature in D-Bus, IIRC. So it might be
sufficient for you to apply
env DBUS_SESSION_BUS_ADDRESS="autolaunch:" emacs ...
> Thanks!
>
> Adam
Best regards, Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: notifications when dbus fails prevents fetching email/news
2012-12-07 16:55 ` Michael Albinus
@ 2012-12-13 16:37 ` Adam Sjøgren
0 siblings, 0 replies; 6+ messages in thread
From: Adam Sjøgren @ 2012-12-13 16:37 UTC (permalink / raw)
To: ding
On Fri, 07 Dec 2012 17:55:09 +0100, Michael wrote:
> Well, the scope is a rather new feature in D-Bus, IIRC. So it might be
> sufficient for you to apply
> env DBUS_SESSION_BUS_ADDRESS="autolaunch:" emacs ...
That made the warning go away and the notifications pop up on the
desktop - great!
Now, if only I could get emacsclient (without -nw) to work remotely...
:-),
Adam
--
"Du har brug for en Adam Sjøgren
der er meget stærkere end mig asjo@koldfront.dk
Jeg vælter lige så let som dig"
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-12-13 16:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-07 9:58 notifications when dbus fails prevents fetching email/news Adam Sjøgren
2012-12-07 10:44 ` Steinar Bang
2012-12-07 11:34 ` Michael Albinus
2012-12-07 12:40 ` Adam Sjøgren
2012-12-07 16:55 ` Michael Albinus
2012-12-13 16:37 ` Adam Sjøgren
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 NNTP newsgroup(s).