[maemo-developers] How to get a general utility package cross-listed from tools to extras?

From: tz thomas at mich.com
Date: Fri Nov 7 16:11:19 EET 2008
It should not be considered "for testing only" no more than ifconfig
or a bunch of other configuration and status utilities - you could
bury all these somewhere, but it would make things worse.

I'm using l2ping (which requires root and has no equivalent I know
of), and rfcomm

I am familiar with kbdd, but dbus has some horrible and ugly handling,
not to mention more cluttering up with dependencies.

I don't know if it would be less or more than just accessing the bluez
stack directly which I don't want to do either.

How many lines (including makefile, config, includes) either way just
to do the equivalent of a oneliner command line connect?

And I CAN add an entry to sudoers to allow l2ping from userland.  The
alternative is making my program suid and try to give up privileges or
fork or who knows what.

Replacing a single system("script...") call with hundreds of line of
complex interface, privilege changing and messaging code which just
duplicates what is already there is not "the preferred way".

Note that the bluez stack on the tablets tend to lock the system when
scanning or doing nearly anything EXCEPT l2ping (raw socket) to test
for a device coming back in range, and I don't expect that to be fixed
soon.

On Thu, Nov 6, 2008 at 3:09 AM, Frantisek Dufka <dufkaf at seznam.cz> wrote:
> tz wrote:
>>
>> This is no longer academic as my minigpsd program is sitting in
>> extras-devel, and the ONLY problem it has is the bluez-utils-test
>> dependency.
>
> Well, maybe bluez-utils-test is in SDK repository because it is mainly for
> testing? What part of bluez utils you need?
>
> Bluez moved to handling most things via D-bus so command line utils like
> rfcomm, hcitool etc are no longer the only (or even the preferred) way to do
> things.
>
> So maybe instead of using them you may start to use d-bus? I went this way
> with kbdd and did everything I needed (open rfcomm connection). See
> dbus-bluez-* stuff and btkbd inside
> http://fanoush.wz.cz/maemo/kbdd.tar.gz
>
> API is described here http://wiki.bluez.org/
>
> Frantisek
>
>

More information about the maemo-developers mailing list