From owner-freebsd-questions@FreeBSD.ORG Wed Mar 21 14:33:44 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C5F57106566C for ; Wed, 21 Mar 2012 14:33:44 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id 736EA8FC1D for ; Wed, 21 Mar 2012 14:33:44 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.182]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id 8FC4C5C22 for ; Thu, 22 Mar 2012 00:47:16 +1000 (EST) Message-ID: <4F69E581.7070107@herveybayaustralia.com.au> Date: Thu, 22 Mar 2012 00:28:17 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111109 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20120319122129.GA41308@mech-cluster241.men.bris.ac.uk> <4F694732.8070708@bananmonarki.se> <20120321092909.GA15165@mech-cluster241.men.bris.ac.uk> In-Reply-To: <20120321092909.GA15165@mech-cluster241.men.bris.ac.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: dbus, epiphany, rekonq X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2012 14:33:44 -0000 On 03/21/12 19:29, Anton Shterenlikht wrote: > On Wed, Mar 21, 2012 at 04:12:50AM +0100, Bernt Hansson wrote: >> 2012-03-19 13:21, Anton Shterenlikht skrev: >>> I can't lauch www/epiphany or www/rekonq >>> on ia64 -current, due to some dbus issue: >>> >>> TZAV> ps ax|grep dbus >>> 1435 - Is 0:00.02 /usr/local/bin/dbus-daemon --fork --print-pid >>> 5 --print-address 7 --sess >>> 1434 2- I 0:00.01 dbus-launch >>> --autolaunch=fb0372ea595109904f5a068e00000180 --binary-synta >>> 41284 5 RL+ 0:00.00 grep dbus >>> >>> TZAV> epiphany >>> >>> ** (epiphany:41285): WARNING **: Unable to connect to session bus: Failed >>> to connect to socket /tmp/dbus-dyUjnhLBwE: No such file or directory >>> >>> TZAV> rekonq >>> unnamed app(41291): KUniqueApplication: Cannot find the D-Bus session >>> server: "Failed to connect to socket /tmp/dbus-dyUjnhLBwE: No such file >>> or directory" >>> >>> unnamed app(41290): KUniqueApplication: Pipe closed unexpectedly. >>> >>> TZAV> ps ax | grep dbus >>> 1435 - Is 0:00.02 /usr/local/bin/dbus-daemon --fork --print-pid >>> 5 --print-address 7 --sess >>> 1434 2- I 0:00.01 dbus-launch >>> --autolaunch=fb0372ea595109904f5a068e00000180 --binary-synta >>> 41294 5 RL+ 0:00.00 grep dbus >>> >>> What am I doing wrong? >>> >>> I understand dbus is a required part of >>> a modern browser, it is no longer an option, right? >>> >>> Many thanks >>> >> You do have this in /etc/rc.conf >> >> dbus_enable="YES" > I didn't think it was necessary, as firefox3 > launches dbus-daemon on startup. But I'll give > it a go. > > Thanks This got me: you need dbus_enable in the rc.conf (for global, this I have observed for a long time), but you apparently need it _per session_ as well. dbus and hal work together at the system level to facilitate device addition and removal notification; dbus at the session level provides notification between the apps and the system notifications (redundant given FreeBSDs already in place notification systems). This how the file managers add new devices and filesystems to the "place" listings. To do this you need to have a dbus session running per user, and a few more convoluted processes to ensure each app uses it. So you use the addition to the xsession script posted, console-kit (possibly), and dbus-launch for every app. Fun... As to whether all this applies in your particular case... but essentially this how it is used. HIH