From bc43377cc65cfea6e7719d5cfc3ba1c2093b5a29 Mon Sep 17 00:00:00 2001 From: Shigeto Kumagai Date: Mon, 18 Aug 2025 23:13:21 +0900 Subject: [PATCH] fix: add python-object to make installation of Omarchy work (#806) * Explicitly add python-object to make powerprofile work * added migration * Explain the why, not the how --------- Co-authored-by: David Heinemeier Hansson --- install/config/power.sh | 2 +- migrations/1755459930.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 migrations/1755459930.sh diff --git a/install/config/power.sh b/install/config/power.sh index 34b48527..3c3059d4 100644 --- a/install/config/power.sh +++ b/install/config/power.sh @@ -2,7 +2,7 @@ # Setting the performance profile can make a big difference. By default, most systems seem to start in balanced mode, # even if they're not running off a battery. So let's make sure that's changed to performance. -yay -S --noconfirm power-profiles-daemon +yay -S --noconfirm python-gobject power-profiles-daemon if ls /sys/class/power_supply/BAT* &>/dev/null; then # This computer runs on a battery diff --git a/migrations/1755459930.sh b/migrations/1755459930.sh new file mode 100644 index 00000000..ee6633b0 --- /dev/null +++ b/migrations/1755459930.sh @@ -0,0 +1,5 @@ +echo "Add potentially missing dependency for power profile controls" + +if ! yay -Q python-gobject &>/dev/null; then + yay -S --noconfirm python-gobject +fi