summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorGabriel Jones <ggppjj@gmail.com>2022-05-04 04:42:03 -0400
committerGitHub <noreply@github.com>2022-05-04 11:42:03 +0300
commit279b1e8c40e7b462ff3b673c42cea24783ca6758 (patch)
tree33c9f548a8597362ae0326474d658afc63b7bc1d /dist
parent89ecca7c30f3898e4b772b7c9786fa58e5bb4ada (diff)
downloaddecky-loader-279b1e8c40e7b462ff3b673c42cea24783ca6758.tar.gz
decky-loader-279b1e8c40e7b462ff3b673c42cea24783ca6758.zip
Uninstall script addition (#48)
* Create uninstall.sh * Update uninstall.sh First pass for a version that looks similar to the install scripts * Update readme with uninstall info Add uninstall script info to readme * Update dist/uninstall.sh Only remove services for now Co-authored-by: TrainDoctor <11465594+TrainDoctor@users.noreply.github.com> * Adjust echo to accurately reflect script actions No longer deletes installed plugins, adjusted echo to match actions. Co-authored-by: TrainDoctor <11465594+TrainDoctor@users.noreply.github.com>
Diffstat (limited to 'dist')
-rw-r--r--dist/uninstall.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/dist/uninstall.sh b/dist/uninstall.sh
new file mode 100644
index 00000000..a98ba0de
--- /dev/null
+++ b/dist/uninstall.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+echo "Uninstalling Steam Deck Plugin Loader..."
+
+HOMEBREW_FOLDER=/home/deck/homebrew
+
+# Disable and remove services
+sudo systemctl disable --now plugin_loader.service > /dev/null
+sudo rm -f /home/deck/.config/systemd/user/plugin_loader.service
+sudo rm -f /etc/systemd/system/plugin_loader.service
+
+# Remove temporary folder if it exists from the install process
+rm -rf /tmp/plugin_loader
+
+# Cleanup services folder
+sudo rm ${HOMEBREW_FOLDER}/services/PluginLoader
+