gnome-control-center/gnome-control-center-more-power-button-actions.patch
Bjørn Lie 4e500ea167 - Recommend ppd-server instead of power-profiles-daemon: there is
also tuned-ppd, which provides the same dbus interface. If the
  user does not chose between the two, we suggest the original
  power-profiles-daemon.

- Fix escaping of commented out patch: with RPM 4.20, %patch
  becomes a standard, expandable macro, that can span more than one
  line. Commenting out with #%patch can thus lead to invalid
  results.

OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-control-center?expand=0&rev=578
2025-01-17 12:58:49 +00:00

14 lines
762 B
Diff

diff -urp gnome-control-center-47.rc.orig/panels/power/cc-power-panel.c gnome-control-center-47.rc/panels/power/cc-power-panel.c
--- gnome-control-center-47.rc.orig/panels/power/cc-power-panel.c 2024-09-10 10:09:29.314005144 -0500
+++ gnome-control-center-47.rc/panels/power/cc-power-panel.c 2024-09-10 10:10:46.471756741 -0500
@@ -433,7 +433,8 @@ populate_power_button_row (CcNumberRow *
{ N_("Suspend"), GSD_POWER_BUTTON_ACTION_SUSPEND },
{ N_("Power Off"), GSD_POWER_BUTTON_ACTION_INTERACTIVE },
{ N_("Hibernate"), GSD_POWER_BUTTON_ACTION_HIBERNATE },
- { N_("Nothing"), GSD_POWER_BUTTON_ACTION_NOTHING }
+ { N_("Nothing"), GSD_POWER_BUTTON_ACTION_NOTHING },
+ { N_("Force Off"), GSD_POWER_BUTTON_ACTION_SHUTDOWN }
};
guint i;