From: sjoerd@spring.luon.net (Sjoerd Simons)
To: bluez-devel@lists.sourceforge.net
Cc: Achim Bohnet <ach@mpe.mpg.de>, Marcel Holtmann <marcel@holtmann.org>
Subject: Re: [Bluez-devel] D-BUS fixes for hcid
Date: Thu, 17 Jun 2004 09:27:49 +0200 [thread overview]
Message-ID: <20040617072748.GA3775@spring.luon.net> (raw)
In-Reply-To: <20040616141845.GA8921@kone>
On Wed, Jun 16, 2004 at 05:18:45PM +0300, Johan Hedberg wrote:
> On Wed, Jun 16, 2004, Achim Bohnet wrote:
> > On debian, dbus-1-utils installs a xsession startup script
> > that checks for use-session-dbus in /etc/X11/Xsession.options
> > Therefore dbus daemon knows the $DISPLAY.
$DISPLAY is indeed in the enviroment when started by the debian x-session. But
dbus doesn't (and shouldn't) care about it. There is nothing that says
that a dbus session bus is connected to an X session (could be console
only session just as well)..
> However, hcid uses the system D-BUS which knows nothing about the
> session (system D-BUS and session D-BUS are run as two separate
> processes). This is an interesting problem, because from a lowlevel
> (BT-stack) standpoint we want to use the system bus, but from a higher
> level (pin-code dialog) standpoint the session bus would be apropriate.
From both standpoints you'll want to use the system bus. A bluetooth pin query
is not linked to a specific users session, but to complete system.
The current sollution is correct imho, when a users wants to answer pin
queries he/she should have something running that monitors the system bus for
them. That something could be a gnome applet/notification icon, a kde
thingie or a simple command line program that doesn't really matter.
The activation stuff could be nice for non-interactive pin handlers, but you
can already use the ``old'' pin_helper option of hcid for that.
Sjoerd
--
Men love to wonder, and that is the seed of science.
next prev parent reply other threads:[~2004-06-17 7:27 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-16 11:27 [Bluez-devel] D-BUS fixes for hcid Johan Hedberg
2004-06-16 11:37 ` Marcel Holtmann
2004-06-16 11:57 ` Johan Hedberg
2004-06-16 12:05 ` Johan Hedberg
2004-06-16 12:18 ` Marcel Holtmann
2004-06-16 12:45 ` Johan Hedberg
2004-06-16 13:06 ` Marcel Holtmann
2004-06-16 13:46 ` Johan Hedberg
2004-06-16 13:53 ` Marcel Holtmann
2004-06-16 13:58 ` Achim Bohnet
2004-06-16 14:18 ` Johan Hedberg
2004-06-16 23:06 ` Marcel Holtmann
2004-06-17 9:48 ` Johan Hedberg
2004-06-17 12:05 ` Marcel Holtmann
2004-06-17 7:27 ` Sjoerd Simons [this message]
2004-06-18 7:30 ` Achim Bohnet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040617072748.GA3775@spring.luon.net \
--to=sjoerd@spring.luon.net \
--cc=ach@mpe.mpg.de \
--cc=bluez-devel@lists.sourceforge.net \
--cc=marcel@holtmann.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox