From ca380b554c3b2fc14eabc71164be28dd9180496f Mon Sep 17 00:00:00 2001 From: theofficialgman <28281419+theofficialgman@users.noreply.github.com> Date: Sat, 29 Jul 2023 12:34:05 -0400 Subject: [PATCH] CommanderPi: bookworm compat work towards https://github.com/Botspot/pi-apps/issues/2401 official install script attempts to install psutil from pip when this package is available via apt in all distros of high enough version for the application. a wrong solution was suggested a long time ago https://github.com/Botspot/pi-apps/issues/159 --- apps/CommanderPi/install | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/CommanderPi/install b/apps/CommanderPi/install index 581cf83a12..f7163a3dda 100755 --- a/apps/CommanderPi/install +++ b/apps/CommanderPi/install @@ -6,8 +6,11 @@ fi rm -rf ~/CommanderPi &>/dev/null || sudo rm -rf ~/CommanderPi || error "Failed to remove CommanderPi folder!" # Get dependencies -install_packages python3-tk python3-pil python3-pil.imagetk || exit 1 +install_packages python3 python3-psutil python3-tk python3-pil python3-pil.imagetk || exit 1 git_clone https://github.com/Jack477/CommanderPi || error "failed to download repository!" cd CommanderPi || error "failed to enter repository!" -chmod +x install.sh || error "failed to mark install.sh as executable!" -./install.sh || error "failed to run install.sh!" +# make sure start.sh is executable +chmod +x src/start.sh +sudo python3 c_desktop.py $USER || error "Could not install commanderpi!" +sudo chown $USER:$USER ~/Desktop/commanderpi.desktop +chmod +x ~/Desktop/commanderpi.desktop