aboutsummaryrefslogtreecommitdiff
path: root/web/native-protocol/uninstall
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-01-31 23:15:22 +0100
committermetamuffin <metamuffin@disroot.org>2024-01-31 23:15:22 +0100
commitc4362adc4af0c4dcdbb2346a9e077bdf580d8007 (patch)
tree0500be10f312714973338969c50dd8319d839965 /web/native-protocol/uninstall
parent39a4b10789ff9f97ddc3de7d55bc845cabaac333 (diff)
downloadjellything-c4362adc4af0c4dcdbb2346a9e077bdf580d8007.tar
jellything-c4362adc4af0c4dcdbb2346a9e077bdf580d8007.tar.bz2
jellything-c4362adc4af0c4dcdbb2346a9e077bdf580d8007.tar.zst
fix native player
Diffstat (limited to 'web/native-protocol/uninstall')
-rwxr-xr-xweb/native-protocol/uninstall12
1 files changed, 12 insertions, 0 deletions
diff --git a/web/native-protocol/uninstall b/web/native-protocol/uninstall
new file mode 100755
index 0000000..42e074e
--- /dev/null
+++ b/web/native-protocol/uninstall
@@ -0,0 +1,12 @@
+#!/bin/fish
+if fish_is_root_user
+ echo 'Global uninstallation'
+ rm /usr/local/bin/jellynative
+ rm /usr/local/share/applications/jellynative.desktop
+ update-desktop-database /usr/local/share/applications
+else
+ echo 'User uninstallation'
+ rm ~/.local/bin/jellynative
+ rm ~/.local/share/applications/jellynative.desktop
+ update-desktop-database ~/.local/share/applications
+end