diff --git a/debian/patches/2000_disable_notification_prefs_ui.patch b/debian/patches/2000_disable_notification_prefs_ui.patch new file mode 100644 index 0000000..3c6244a --- /dev/null +++ b/debian/patches/2000_disable_notification_prefs_ui.patch @@ -0,0 +1,14 @@ +Description: Disable the notification preferences so options are not presented that indicator-power handles. +Author: Martin Wimpress + +--- a/data/gpm-prefs.ui ++++ b/data/gpm-prefs.ui +@@ -895,7 +895,7 @@ + + + +- True ++ False + vertical + 6 + diff --git a/debian/rules b/debian/rules index bfb7d10..4a56501 100755 --- a/debian/rules +++ b/debian/rules @@ -14,8 +14,8 @@ override_dh_missing: override_dh_install: dh_install - # Override some mate-power-manager default because Ubuntu MATE has - # indicator-power enabled by default. + # Ubuntu MATE enables indicators by default which include indicator-power + # so override mate-power-manager defaults accordingly. ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes),yes) dh_install -pmate-power-manager-common debian/25_mate-power-manager-ubuntu.gschema.override /usr/share/glib-2.0/schemas/ endif @@ -24,6 +24,11 @@ override_dh_installchangelogs: dh_installchangelogs NEWS override_dh_auto_configure: + # Ubuntu MATE enables indicators by default which include indicator-power + # so patch disable some UI in mate-power-manager that is irrelevant +ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes),yes) + patch data/gpm-prefs.ui < debian/patches/2000_disable_notification_prefs_ui.patch +endif # upstream is without configure. autogen.sh will create it NOCONFIGURE=1 ./autogen.sh dh_auto_configure $(DHFLAGS) -- \