netstar pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=e9200fb081e1711f7a0d722b1ebdbaede9faf479
commit e9200fb081e1711f7a0d722b1ebdbaede9faf479 Author: Alastair Poole <[email protected]> Date: Sun Dec 22 21:47:33 2019 +0000 batman: Fix adding batteries on Linux. When we add a batman gadget to the desktop it previously would reset the values of all existing batman instances. Here we ignore the dummy instance used when adding to desktop or a gadget bar. --- src/modules/sysinfo/batman/batman_udev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/sysinfo/batman/batman_udev.c b/src/modules/sysinfo/batman/batman_udev.c index 79335872c..e79c6d236 100644 --- a/src/modules/sysinfo/batman/batman_udev.c +++ b/src/modules/sysinfo/batman/batman_udev.c @@ -43,6 +43,12 @@ _batman_udev_stop(Instance *inst) Ac_Adapter *ac; Battery *bat; + /* This is a dummy battery we return here. */ + if (inst->cfg->batman.have_battery != 1) + { + return; + } + if (inst->cfg->batman.batwatch) E_FREE_FUNC(inst->cfg->batman.batwatch, eeze_udev_watch_del); if (inst->cfg->batman.acwatch) --
