Ensure powerprofilesctl always use system python to prevent conflicts with mise

This commit is contained in:
David Heinemeier Hansson 2025-09-17 12:30:35 +02:00
parent 1514c5c633
commit f6df59c9ed
3 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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

3
migrations/1758104201.sh Normal file
View File

@ -0,0 +1,3 @@
echo "Prevent powerprofilesctl from using Mise python and not working"
bash $OMARCHY_PATH/install/config/fix-powerprofilesctl-shebang.sh