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?
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) { KIND_LINE_ POWER; KIND_BATTERY;
type = UP_DEVICE_
} else if (g_ascii_strcasecmp (device_type, "battery") == 0) {
type = UP_DEVICE_
/* 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