Comment 51 for bug 1153488

Revision history for this message
redman (patrick-libert) wrote :

I don't know if Shih-Yuan Lee (fourdollars) his patch is used but there is clearly a bug in the code!!

If you get to see at the following lines:

    if (g_ascii_strcasecmp (device_type, "mains") == 0) {
            type = UP_DEVICE_KIND_LINE_POWER;
           } else if (g_ascii_strcasecmp (device_type, "battery") == 0) {
            type = UP_DEVICE_KIND_BATTERY;
       /* Detect if the battery comes from bluetooth keyboard or mouse. */
           if (g_strstr_len (native_path, -1, "bluetooth") != NULL) {

The code should be changed so it should also look for a bluetooth mouse when "type = UP_DEVICE_KIND_LINE_POWER;"
So when you use a desktop pc without battery but with a bluetooth mouse so it shows the correct icon.

I'm not really a programmer but could you check it?

Thanks