summaryrefslogtreecommitdiff
path: root/gui/user_install_script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gui/user_install_script.sh')
-rw-r--r--gui/user_install_script.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/gui/user_install_script.sh b/gui/user_install_script.sh
index 18ef7fe..376a7dd 100644
--- a/gui/user_install_script.sh
+++ b/gui/user_install_script.sh
@@ -94,7 +94,7 @@ rm -rf "${HOMEBREW_FOLDER}/services"
sudo -u $SUDO_USER mkdir -p "${HOMEBREW_FOLDER}/services"
sudo -u $SUDO_USER mkdir -p "${HOMEBREW_FOLDER}/plugins"
sudo -u $SUDO_USER touch "${USER_DIR}/.steam/steam/.cef-enable-remote-debugging"
-
+$SUDO_USER
echo "30" ; echo "# Finding latest $BRANCH";
if [ $BRANCH = 'prerelease' ] ; then
RELEASE=$(curl -s 'https://api.github.com/repos/SteamDeckHomebrew/decky-loader/releases' | jq -r "first(.[] | select(.prerelease == "true"))")
@@ -154,6 +154,14 @@ rm ${HOMEBREW_FOLDER}/services/plugin_loader-backup.service ${HOMEBREW_FOLDER}/s
systemctl daemon-reload
systemctl start plugin_loader
systemctl enable plugin_loader
+
+# this (retroactively) fixes a bug where users who ran the installer would have homebrew owned by root instead of their user
+# will likely be removed at some point in the future
+if [ "$SUDO_USER" = "deck" ]; then
+ sudo chown -R deck:deck /home/deck/homebrew
+ sudo chown -R root:root /home/wumpus/homebrew/services/*
+fi
+
echo "100" ; echo "# Install finished, installer can now be closed";
) |
zenity --progress \