From bb126d8297c442af2ce5dcdc32ee91d041f23e4a Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Fri, 13 Oct 2023 08:10:37 +0100 Subject: add flatpak steam support --- cli/install_prerelease.sh | 2 ++ cli/install_release.sh | 2 ++ cli/uninstall.sh | 1 + gui/user_install_script.sh | 3 +++ 4 files changed, 8 insertions(+) diff --git a/cli/install_prerelease.sh b/cli/install_prerelease.sh index 1f5d2f2..a20d7e7 100644 --- a/cli/install_prerelease.sh +++ b/cli/install_prerelease.sh @@ -27,6 +27,8 @@ 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" +# if installed as flatpak, put .cef-enable-remote-debugging there +[ -d "${USER_DIR}/.var/app/com.valvesoftware.Steam/data/Steam/" ] && sudo -u $SUDO_USER touch ${USER_DIR}/.var/app/com.valvesoftware.Steam/data/Steam/.cef-enable-remote-debugging" # Download latest release and install it RELEASE=$(curl -s 'https://api.github.com/repos/SteamDeckHomebrew/decky-loader/releases' | jq -r "first(.[] | select(.prerelease == "true"))") diff --git a/cli/install_release.sh b/cli/install_release.sh index be5c55d..f5f919d 100644 --- a/cli/install_release.sh +++ b/cli/install_release.sh @@ -27,6 +27,8 @@ 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" +# if installed as flatpak, put .cef-enable-remote-debugging there +[ -d "${USER_DIR}/.var/app/com.valvesoftware.Steam/data/Steam/" ] && sudo -u $SUDO_USER touch ${USER_DIR}/.var/app/com.valvesoftware.Steam/data/Steam/.cef-enable-remote-debugging" # Download latest release and install it RELEASE=$(curl -s 'https://api.github.com/repos/SteamDeckHomebrew/decky-loader/releases' | jq -r "first(.[] | select(.prerelease == "false"))") diff --git a/cli/uninstall.sh b/cli/uninstall.sh index e2c7f15..25d1d58 100644 --- a/cli/uninstall.sh +++ b/cli/uninstall.sh @@ -20,3 +20,4 @@ sudo rm "${HOMEBREW_FOLDER}/services/PluginLoader" # disable CEF debugging sudo rm "${USER_DIR}/.steam/steam/.cef-enable-remote-debugging" +sudo rm "${USER_DIR}/.var/app/com.valvesoftware.Steam/data/Steam/.cef-enable-remote-debugging" 2> /dev/null diff --git a/gui/user_install_script.sh b/gui/user_install_script.sh index b137745..2038038 100644 --- a/gui/user_install_script.sh +++ b/gui/user_install_script.sh @@ -105,6 +105,7 @@ if [[ "$OPTION" == "uninstall decky loader" || "$OPTION" == "wipe decky loader" echo "80" ; echo "# Disabling CEF debugging" ; sudo rm "${USER_DIR}/.steam/steam/.cef-enable-remote-debugging" + sudo rm "${USER_DIR}/.var/app/com.valvesoftware.Steam/data/Steam/.cef-enable-remote-debugging" 2> /dev/null echo "100" ; echo "# Uninstall finished, installer can now be closed"; ) | @@ -130,6 +131,8 @@ 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" +# if installed as flatpak, put .cef-enable-remote-debugging there +[ -d "${USER_DIR}/.var/app/com.valvesoftware.Steam/data/Steam/" ] && sudo -u $SUDO_USER touch ${USER_DIR}/.var/app/com.valvesoftware.Steam/data/Steam/.cef-enable-remote-debugging" echo "30" ; echo "# Finding latest $BRANCH"; if [ "$BRANCH" = 'prerelease' ] ; then -- cgit v1.2.3