From f6df59c9ed02eeb3b190982e0c6b0100ab5db821 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 17 Sep 2025 12:30:35 +0200 Subject: [PATCH] Ensure powerprofilesctl always use system python to prevent conflicts with mise --- install/config/all.sh | 1 + install/config/fix-powerprofilesctl-shebang.sh | 2 ++ migrations/1758104201.sh | 3 +++ 3 files changed, 6 insertions(+) create mode 100644 install/config/fix-powerprofilesctl-shebang.sh create mode 100644 migrations/1758104201.sh diff --git a/install/config/all.sh b/install/config/all.sh index 9c8b448..0c630a9 100644 --- a/install/config/all.sh +++ b/install/config/all.sh @@ -11,6 +11,7 @@ run_logged $OMARCHY_INSTALL/config/detect-keyboard-layout.sh run_logged $OMARCHY_INSTALL/config/xcompose.sh run_logged $OMARCHY_INSTALL/config/mise-ruby.sh run_logged $OMARCHY_INSTALL/config/mise-work.sh +run_logged $OMARCHY_INSTALL/config/fix-powerprofilesctl-shebang.sh run_logged $OMARCHY_INSTALL/config/docker.sh run_logged $OMARCHY_INSTALL/config/mimetypes.sh run_logged $OMARCHY_INSTALL/config/localdb.sh diff --git a/install/config/fix-powerprofilesctl-shebang.sh b/install/config/fix-powerprofilesctl-shebang.sh new file mode 100644 index 0000000..61cac43 --- /dev/null +++ b/install/config/fix-powerprofilesctl-shebang.sh @@ -0,0 +1,2 @@ +# Ensure we use system python3 and not mise's python3 +sudo sed -i '/env python3/ c\#!/bin/python3' /usr/bin/powerprofilesctl diff --git a/migrations/1758104201.sh b/migrations/1758104201.sh new file mode 100644 index 0000000..18ac701 --- /dev/null +++ b/migrations/1758104201.sh @@ -0,0 +1,3 @@ +echo "Prevent powerprofilesctl from using Mise python and not working" + +bash $OMARCHY_PATH/install/config/fix-powerprofilesctl-shebang.sh