init f0ckm-uploader
This commit is contained in:
34
uninstall.sh
Normal file
34
uninstall.sh
Normal file
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Configuration directories
|
||||
INSTALL_DIR="$HOME/.local/bin"
|
||||
APP_DIR="$HOME/.local/share/applications"
|
||||
SERVICE_MENU_DIR="$HOME/.local/share/kio/servicemenus"
|
||||
LEGACY_SERVICE_MENU_DIR="$HOME/.local/share/kservices5/ServiceMenus"
|
||||
|
||||
# 1. Remove the executable script
|
||||
if [ -f "$INSTALL_DIR/kde-uploader" ]; then
|
||||
rm "$INSTALL_DIR/kde-uploader"
|
||||
echo "Removed executable from $INSTALL_DIR"
|
||||
fi
|
||||
|
||||
# 2. Remove the standard application entry
|
||||
if [ -f "$APP_DIR/kde-uploader.desktop" ]; then
|
||||
rm "$APP_DIR/kde-uploader.desktop"
|
||||
echo "Removed application entry from $APP_DIR"
|
||||
fi
|
||||
update-desktop-database "$APP_DIR" &> /dev/null
|
||||
|
||||
# 3. Remove the modern KDE Service Menu entry
|
||||
if [ -f "$SERVICE_MENU_DIR/kde-uploader-servicemenu.desktop" ]; then
|
||||
rm "$SERVICE_MENU_DIR/kde-uploader-servicemenu.desktop"
|
||||
echo "Removed service menu entry from $SERVICE_MENU_DIR"
|
||||
fi
|
||||
|
||||
# 4. Remove the legacy KDE Service Menu entry
|
||||
if [ -f "$LEGACY_SERVICE_MENU_DIR/kde-uploader-servicemenu.desktop" ]; then
|
||||
rm "$LEGACY_SERVICE_MENU_DIR/kde-uploader-servicemenu.desktop"
|
||||
echo "Removed legacy service menu entry from $LEGACY_SERVICE_MENU_DIR"
|
||||
fi
|
||||
|
||||
echo "Uninstallation complete! The custom upload options and script have been removed."
|
||||
Reference in New Issue
Block a user