temp fix on RemotePlayWhatever

This commit is contained in:
Roy 2024-05-13 21:09:26 -07:00 committed by GitHub
parent 541a9fcc99
commit 58aa6d769a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -552,6 +552,7 @@ function StartFreshFunction {
rm -rf ${logged_in_home}/.config/systemd/user/env_vars
rm -rf ${logged_in_home}/.config/systemd/user/NSLGameScanner.py
rm -rf ${logged_in_home}/.local/share/applications/RemotePlayWhatever
rm -rf ${logged_in_home}/.local/share/applications/RemotePlayWhatever.desktop
rm -rf ${logged_in_home}/Downloads/NonSteamLaunchers-install.log
# Delete the service file
@ -2229,6 +2230,7 @@ elif [[ -f "$vkplay_path2" ]]; then
fi
#Other Applications
#Other Applications
if [[ $options == *"RemotePlayWhatever"* ]]; then
# Set the directory path
@ -2254,10 +2256,19 @@ if [[ $options == *"RemotePlayWhatever"* ]]; then
# Make the file executable
chmod +x "$DIRECTORY/RemotePlayWhatever"
echo "RemotePlayWhatever downloaded, renamed to Remote Play Whatever, made executable, created in $DIRECTORY"
steamos-add-to-steam "$DIRECTORY/RemotePlayWhatever"
# Create a new .desktop file
echo "[Desktop Entry]
Type=Application
Exec=$DIRECTORY/RemotePlayWhatever \"--appid 0\"
Name=RemotePlayWhatever
Icon=$DIRECTORY/RemotePlayWhatever" > "$DIRECTORY/RemotePlayWhatever.desktop"
# Make the .desktop file executable
chmod +x "$DIRECTORY/RemotePlayWhatever.desktop"
steamos-add-to-steam "$DIRECTORY/RemotePlayWhatever.desktop"
sleep 5
wait
echo "added RemotePlayWhatever to steamos"