Default PIN for bluez-gnome wizard

mr mrintegrity at gmail.com
Sun Nov 9 11:12:25 UTC 2008


Im not a  programmer either, but wouldn't something like that be better as a
constant? :)

On Sun, Nov 9, 2008 at 7:02 AM, Daniel Roesler <diafygi at gmail.com> wrote:

> Howdy all,
>
> I have a partial patch for Bug #284994, which points out a problem
> with PIN codes in the bluez-gnome wizard. Right now, the code randomly
> selects a PIN code for the user to enter on the device. However, on
> many devices you cannot input a custom PIN code, so the device fails
> to connect. Most simple devices this affects have the default code
> "0000", so I changed a line of in the bluez-gnome to try that as a
> default.
>
> /bluez-gnome-1.8/wizard/main.c near the bottom
> -----------FROM-----------
> target_pincode = g_strdup_printf("%d", g_random_int_range(1000, 9999));
> -------------TO-------------
> target_pincode = g_strdup_printf("0000");
> -----------------------------
>
> This patch will only work for devices who's default code is "0000".
> Ideally, the user should be able to set their own code instead of a
> random one. I'm not a programmer and don't have any experience with
> gtk, so I don't know how to implement the ideal feature. Anyway, just
> wanted to see if a partial patch could be added to the updates.
>
> Avast!
> Daniel Roesler
> diafygi at gmail.com
>
> --
> Ubuntu-devel-discuss mailing list
> Ubuntu-devel-discuss at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20081109/19b8a2f4/attachment.html>


More information about the Ubuntu-devel-discuss mailing list