Files
saphid--chromium-webxr-stea…/frame/uninstall.sh
T
saphidandClaude Opus 5.5 60237408b3 Chromium with WebXR for the Steam Frame
Build script, SteamVR sandbox patch, and a Frame installer that adds
Chromium XR to the Steam library.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 23:13:40 +10:00

32 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
# Run on the Steam Frame to remove what frame/install.sh added: the build,
# the launcher, the menu entry and the Steam shortcut. Your Chromium XR
# profile (~/.config/chromium-xr: settings, logins, history) is kept unless
# you pass --remove-profile.
#
# install.sh keeps a copy of this script in ~/.local/share/chromium-xr, so it
# works even after the repo clone is deleted.
set -euo pipefail
remove_profile=false
[[ $# -le 1 ]] || { echo "usage: $0 [--remove-profile]" >&2; exit 2; }
case "${1:-}" in
'') ;;
--remove-profile) remove_profile=true ;;
*) echo "usage: $0 [--remove-profile]" >&2; exit 2 ;;
esac
here=$(cd "$(dirname "$0")" && pwd)
state=$HOME/.local/share/chromium-xr
python3 "$here/steam-shortcut.py" remove "Chromium XR" "$state/steam-appid" ||
echo "Couldn't remove the Steam shortcut; delete Chromium XR from the library by hand." >&2
rm -rf "$HOME/chromium-xr" "$state"
rm -f "$HOME/.local/bin/chromium-xr" "$HOME/.local/share/applications/chromium-xr.desktop"
if $remove_profile; then
rm -rf "$HOME/.config/chromium-xr"
echo "Chromium XR and its profile removed."
else
echo "Chromium XR removed. Your profile is still in ~/.config/chromium-xr."
fi