Date: Sun, 12 Dec 2010 21:38:01 +0530 From: ashish@FreeBSD.org (Ashish SHUKLA) To: Andrea Venturoli <ml@netfence.it> Cc: Ashish SHUKLA <ashish@freebsd.org>, freebsd-ports@freebsd.org Subject: Re: emacs and gconf troubles Message-ID: <864oajj7oe.fsf@chateau.d.if> In-Reply-To: <4D04D3D0.6080008@netfence.it> (Andrea Venturoli's message of "Sun, 12 Dec 2010 14:53:20 %2B0100") References: <4CFA816B.9080505@netfence.it> <86aakkjoax.fsf@chateau.d.if> <4CFBFEB2.8000502@netfence.it> <8662v7khyd.fsf@chateau.d.if> <4CFC9C0D.1080702@netfence.it> <86lj3wpcd1.fsf@chateau.d.if> <4D04D3D0.6080008@netfence.it>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Andrea Venturoli writes: > On 12/11/10 16:18, Ashish SHUKLA wrote: >> Hi Andrea, >>=20 >> Sorry for the late reply. > No problem! > Really, thanks for your help. >> Okay, I'm able to reproduce warnings. As emacs tries to lookup DBUS sess= ion >> bus in the environment, and if it doesn't find one, it starts one. And "= dbus" >> keeps running in the same TTY after you close emacs, so when you try to = exit >> From the SSH session, it hangs waiting for all processes (attached to cu= rrent >> TTY) to exit, and therefore you've to kill the SSH session forcibly. To = verify >> this, you can kill the started dbus-daemon (attached to the same TTY) an= d you >> should be able to exit from SSH session as usual. >>=20 >> I'm not sure if my explanation is correct for this behavior. > I think it only explains part of it. > Scenario A: > _ dbus is running on localhost; > _ I run Konsole and start Emacs from there; > _ I get the warning (but DBUS is running!!!); > _ after I exit Emacs, Konsole usually closes, but not always (!!!). Okay, DBus runs in two modes, system-mode, and session-mode. In "system-mod= e", it's started by rc(8) during boot and exposes itself to all system-wide services (like HAL, Avahi, etc.), whereas in "session-mode" it's usually started by the desktop environment and provides service to all applications specific to the user session. In case, DBus wasn't found running in the session, it's started. So, what I think happening in your case is kdm isn't starting the "DBus" on startup of your session, which is why it only gets activated (started) when you start Emacs (or any other DBus consumer application). I use startx(1) and following is my $HOME/.xinitrc, where I start DBus prior to starting xmonad: #v+ chateau.d.if!abbe:~ % cat .xinitrc #!/bin/sh xrdb ~/.Xdefaults xmodmap ~/.Xmodmap exec dbus-launch --exit-with-session ck-launch-session xmonad 2>&1 >$HOME/.= xsession-errors #v- > Scenario B: > _ dbus is running on localhost; > _ I run Konsole and SSH into another box; > _ on the remote box dbus is not running; > _ I run Emacs, get the warning and DBUS is started; > _ after I exit Emacs I cannot close Konsole unless I also close DBUS. > So your explanation fits the second scenario perfectly, but does not > explain the first. > Also, I read I shouldn't run DBUS on the remote machine, but let Emacs > connect to the one on localhost? Is this true? How do I do it? > Should I run DBUS from rc on every box? And for good overall desktop experience, please make sure dbus gets started= on system startup, as well as session startup. Lots of services expect DBus to= be running. If you're running Emacs on server and don't want DBus to be started, then exclude DBUS using "make config" and reinstall the port. > bye & Thanks > av. HTH =2D-=20 Ashish SHUKLA | GPG: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 freebsd.org!ashish | http://people.freebsd.org/~ashish/ Avoid Success At All Costs !! --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iQIcBAEBCgAGBQJNBPNmAAoJEMdGz6nnT6SwGJMP/jmrAxYiCjW+18SVMfl9Nicq AcCiHxkJz/xqTPVH8kSAU0wM/B5+70MjSAvJuT4nMHUGkzEdDPeashmcF7j/zGcj KSVJqRq+K2US+toAXCYqc4l8hSKsQn08QV51Se16r1iL9lAFk3H539aYU6OsgRY8 1ejwoqZvsFQ4XUQaRM5Vbp8rwVd3a0PAYmaISCyOmc2yX+8QhsSEurEZoRvFIDQG msfgWFkmq825O1rViViVDS3fWEv+ngffOgGiE77EpsiMAOmGp0nGLQGSd53ZlYfz FElfh83u4aMjaNl8CXHeY7oKKkT7gIfMzYWMGSF98SspgewUFpA5UB9Zltj3MVHQ i46heMsVt+CdqDaqkS3hmGHkhPGCPWsktWczlAorLXMnV+6xWIpw/AYkO8W6p03k KTbn2zghkDJwm0u6JoCD3D4wyUlZras59F+8jOgaJsBed/Azs47h2O0+hHjpx3JO LVCWfsuFApv2AIJ2/cmojBQ9MZ6XmCA2uhCRMqk62xRue/icuNJsJXzMfN4yo4D5 RFdDYiTeDVdhUQXEuWoGhHxVbia11YB5447X/+UOkEnNIV7AtU2D7GqM+WdDT+4c eNf2IpyQskA3THR46JiEwCkol8FsYabiVcxgkNw1fidiQhQ7Z6eLYXIpS09o0Ip9 jlIKnSTTREuWVbN/GLZn =D5aN -----END PGP SIGNATURE----- --=-=-=--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?864oajj7oe.fsf>