Skip to content

Commit

Permalink
fixed RPW uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
moraroy authored Aug 24, 2024
1 parent a2974e6 commit 264466d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion NonSteamLaunchers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,7 @@ if [[ $uninstall_options == *"Uninstall PlayStation Plus"* ]]; then
fi



uninstall_launcher() {
local uninstall_options=$1
local launcher=$2
Expand Down Expand Up @@ -909,6 +910,15 @@ process_uninstall_options() {
uninstall_launcher "$uninstall_options" "Playstation Plus" "$psplus_path1" "$psplus_path2" "" "" "psplus"
fi
fi

if [[ $uninstall_options == *"Uninstall RemotePlayWhatever"* ]]; then
rm -rf "${logged_in_home}/.local/share/applications/RemotePlayWhatever"
rm -rf "${logged_in_home}/.local/share/applications/RemotePlayWhatever.desktop"

zenity --info --text="RemotePlayWhatever has been uninstalled." --width=200 --height=150 &
sleep 3
killall zenity
fi
uninstall_launcher "$uninstall_options" "Uplay" "$uplay_path1" "$uplay_path2" "${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/pfx/drive_c/Program Files (x86)/Ubisoft" "${logged_in_home}/.local/share/Steam/steamapps/compatdata/UplayLauncher" "uplay" "ubisoft"
uninstall_launcher "$uninstall_options" "Battle.net" "$battlenet_path1" "$battlenet_path2" "${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/pfx/drive_c/Program Files (x86)/Battle.net" "${logged_in_home}/.local/share/Steam/steamapps/compatdata/Battle.netLauncher" "battle" "bnet"
uninstall_launcher "$uninstall_options" "Epic Games" "$epic_games_launcher_path1" "$epic_games_launcher_path2" "${logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/pfx/drive_c/Program Files (x86)/Epic Games" "${logged_in_home}/.local/share/Steam/steamapps/compatdata/EpicGamesLauncher" "epic"
Expand Down Expand Up @@ -976,6 +986,7 @@ else
FALSE "VK Play" \
FALSE "HoYoPlay" \
FALSE "Nexon Launcher" \
FALSE "RemotePlayWhatever"
)
# Convert the returned string to an array
IFS='|' read -r -a uninstall_options_array <<< "$uninstall_options"
Expand Down Expand Up @@ -1680,7 +1691,6 @@ if [[ $options == *"RemotePlayWhatever"* ]]; then

steamos-add-to-steam "$DIRECTORY/RemotePlayWhatever.desktop"
sleep 5
wait
echo "added RemotePlayWhatever to steamos"
fi

Expand Down

0 comments on commit 264466d

Please sign in to comment.