diff options
| author | Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> | 2023-01-11 17:17:42 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-11 17:17:42 +0000 |
| commit | abe465b26b73eab3b339fdaebeeedde604a8ce1b (patch) | |
| tree | 3351e4b22a249b525bc68c76a13f35b87aa29d9b /gui | |
| parent | 30c86a9688ccb47060ec8fec01e82db67db10f52 (diff) | |
| download | decky-installer-abe465b26b73eab3b339fdaebeeedde604a8ce1b.tar.gz decky-installer-abe465b26b73eab3b339fdaebeeedde604a8ce1b.zip | |
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/user_install_script.sh | 10 |
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 \ |
