Skip to content

rfkill: Monitor WwanEnabled property changes properly

gentoo-root requested to merge gentoo-root/gnome-settings-daemon:fix-wwan into master

g-signal is not fired on property changes, so nm_signal is never called, and all changes of NetworkManager's WwanEnabled property are missed. That leads to an inability to disable the airplane mode on laptops with WWAN after the airplane mode was once enabled by button.

Fix this by subscribing to g-properties-changed to actually listen to the updates of WwanEnabled. It also makes the code simpler.

Fixes: d74b6de1 ("rfkill: watch and set NetworkManager wwan-enabled")

Merge request reports