From owner-freebsd-ports@FreeBSD.ORG Sun Dec 12 16:10:23 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from chateau.d.if (localhost [IPv6:::1]) by hub.freebsd.org (Postfix) with ESMTP id D9640106566C; Sun, 12 Dec 2010 16:10:21 +0000 (UTC) (envelope-from ashish@freebsd.org) Received: from chateau.d.if (chateau.d.if [IPv6:::1]) by chateau.d.if (Postfix) with ESMTP id 069454AF6E; Sun, 12 Dec 2010 21:38:06 +0530 (IST) From: ashish@FreeBSD.org (Ashish SHUKLA) To: Andrea Venturoli Organization: The FreeBSD Project 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> X-Face: )vGQ9yK7Y$Flebu1C>(B\gYBm)[$zfKM+p&TT[[JWl6:]S>cc$%-z7-`46Zf0B*syL.C]oCq[upTG~zuS0.$"_%)|Q@$hA=9{3l{%u^h3jJ^Zl; t7 X-Uptime: 9:28PM up 23 mins, 1 user, load averages: 0.64, 0.68, 0.45 X-URL: http://762e5e74.wordpress.com/ X-Operating-System: FreeBSD/FreeBSD 8.1-RELEASE/amd64 X-OpenPGP-Fingerprint: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 X-Attribution: =?utf-8?B?4KSG4KS24KWA4KS3?= Organisation: The FreeBSD Project Date: Sun, 12 Dec 2010 21:38:01 +0530 In-Reply-To: <4D04D3D0.6080008@netfence.it> (Andrea Venturoli's message of "Sun, 12 Dec 2010 14:53:20 +0100") Message-ID: <864oajj7oe.fsf@chateau.d.if> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (amd64-portbld-freebsd8.1) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJ1BMVEWpqal/f39tbW1jY2Md HR2goKCenp6UlJROTk7////9/f35+fnT09ORJdieAAACVklEQVQ4jXXUP2vbQBQA8AvUTkgz5OzY Z0iGWhpS6BSrkECn0mvx0MEJ6AjtYrfoBCVDlD8naJYmNlRfwZq8+mkKlIZaGpJSYmP7Q/XkJDrJ Td8i/H68u3vHPaPufwLdf32AMA4A6GcAgvAamY1pOJiDIFqicTwLswDhfr3uxfFtkAY/GFHPMwzD 8zpnACmIOnE6js7rQb+v4NJrG9od0C+QgpHMy5jBewV+UDSMWiw1Y4fWfyV7+NGFzDsYa3pth9LJ Q4XvXxFHcJRvHOmygn5NAEabnDcQQguarnfoiwSCJ99jmKKcphsZONmWsDK9Ro7cvZOCtQdg8nje egLhc2LNlkLmsezzTFUUy5w18ocox/f0LaLgJy0zO75zk+9pp85GAj36xjqhdI0y3tq2m4dqqcWX zQWBTz8L1irvolXV4J+3q7eCDgVnttjNq6X8H+9KOZsuNk1uCzx8pSp+E9HImfJOTLdcGqo+YKnG EIovizkEn48V7BO+ch2DXcD4ENSpWiU+q8hjjbgTBZCXnZtyj0Ws4Q1Q0B2WXFtYZo65Bbyeeldw RS6qFueM80LlLA29YlVwGRYvFD+kwI/0O+A2PlpOP9GwslUVciHuYGechuBTp922YiDZCrghTknm XSyOM+D3aoRZlo0Jb42zY7DN4p2x4AeZ+QAYutx1sHwTHzMT5cMNduQ9yW3GczN4KZ86kb0c9O8T yXDeFqpl2fryPEAYGXIlezAPXYh2NgVr/gvdoHIuDwuPwOhcWE8f8mmICq41eATkn8x0kuRTIKcB wE9+/QUtiiAnYcaN7wAAAABJRU5ErkJggg== MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Cc: Ashish SHUKLA , freebsd-ports@freebsd.org Subject: Re: emacs and gconf troubles X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2010 16:10:23 -0000 --=-=-= 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----- --=-=-=--