From: Marcel Holtmann <marcel@holtmann.org>
To: Bastien Nocera <hadess@hadess.net>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH] Draft of xdg-hostname support
Date: Fri, 12 Jun 2009 17:27:00 +0200 [thread overview]
Message-ID: <1244820420.5536.6.camel@violet> (raw)
In-Reply-To: <1244818043.3280.392.camel@snoogens.fab.redhat.com>
Hi Bastien,
> xdg-hostname[1] is a D-Bus service that offers notification on hostname
> changes, and provides an additional "Display hostname" (think MacOS X'
> and Windows' "computer name").
>
> This would allow us to call adapters something like:
> Bastien's laptop
> rather than:
> dhcp-1-124-1
>
> The code is a first pass at the problem, and won't even run, but will
> compile. I'm thinking about changing that code, and I'm looking for
> hints on the direction (rather than comments on the dependencies or the
> coding style).
>
> I'm thinking:
> - Make expand_name UTF-8 aware
> - Factor the main_opts.hostname setting code, and make it pluggable
> (hints?)
> - Change the device name when the display name or hostname changes
> (would need to get added to the hciops plugin)
personally I never liked the Bluetooth name being derived from the bare
hostname and desktop systems. So feel free to do something similar that
we do for the class of device.
However keep in mind that systems like the N810 or similar wanna have a
specific default name and we have to respect that. So if integration
configures a default device name in main.conf then we should respect
that.
Problem area as usual are the cases with multiple devices attached to
the same system. Having them ending all up with the same name would be
kind stupid.
Don't change src/plugin.c since bootstrap-configure will turn PLUGINDIR
to the local repository anyway. And also you can have builtin plugins
that will solve the testing issue.
Of course when you consider this seriously for inclusion, I expect a
pure low-level D-Bus plugin here. Same as how we handle HAL.
Regards
Marcel
next prev parent reply other threads:[~2009-06-12 15:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-12 14:47 [PATCH] Draft of xdg-hostname support Bastien Nocera
2009-06-12 15:27 ` Marcel Holtmann [this message]
2009-06-12 16:33 ` Bastien Nocera
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=1244820420.5536.6.camel@violet \
--to=marcel@holtmann.org \
--cc=hadess@hadess.net \
--cc=linux-bluetooth@vger.kernel.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