obextool wrapper arbitrarily performs lengthy scans

Bug #361068 reported by gatopeich
2
Affects Status Importance Assigned to Milestone
obextool (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: obextool

obextool wrapper is assuming that the only way to specify OBEXCMD is by env var, and performs time wasting scans even when just invoked with --help.

* Arbitrarily performs all scans (bluetooth & irda) also when just invoked with "--help".

* Wrongly assumes that it is missing OBEXCMD info even when --obexcmd option is provided. While trying to be helpful, this unsolicited scanning becomes an annoyance.

  $ obextool --obexcmd "obexftp -b 11:22:33:44:55:66"
  Define OBEXCMD environment variable to disable this scan!
  Scanning for Irda devices
<~10 seconds>
  Scanning for bluetooth devices
<~10 seconds>
  Using obexftp command: /usr/bin/obexftp -t /dev/ttyS0
  Found ObexTool version 0.33 ...
  Found configuration file /etc/obextool/obextool.cfg version 0.33 ...
  Found configuration file /etc/obextool/obextool.typ version 0.33 ...
  Found configuration file /etc/obextool/obextool.ext version 0.33 ...

This makes it very hard to invoke obextool from Thunar and other X applications, which require yet another wrapper.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.