34 lines
1.0 KiB
Bash
Executable File
34 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
||
# Joplin Uninstall Script - Unofficial
|
||
|
||
echo "Starting uninstallation of Joplin..."
|
||
|
||
# 1. Remove application directory
|
||
if [ -d "$HOME/.joplin" ]; then
|
||
rm -rf "$HOME/.joplin"
|
||
echo "✓ Removed binary folder ~/.joplin"
|
||
else
|
||
echo "ℹ ~/.joplin not found, skipping."
|
||
fi
|
||
|
||
# 2. Remove desktop entry
|
||
if [ -f "$HOME/.local/share/applications/appimagekit-joplin.desktop" ]; then
|
||
rm -f "$HOME/.local/share/applications/appimagekit-joplin.desktop"
|
||
echo "✓ Removed desktop entry"
|
||
else
|
||
echo "ℹ Desktop entry not found, skipping."
|
||
fi
|
||
|
||
# 3. Remove icon
|
||
if [ -f "$HOME/.local/share/icons/hicolor/512x512/apps/joplin.png" ]; then
|
||
rm -f "$HOME/.local/share/icons/hicolor/512x512/apps/joplin.png"
|
||
echo "✓ Removed application icon"
|
||
else
|
||
echo "ℹ Icon not found, skipping."
|
||
fi
|
||
|
||
echo "-------------------------------------------------------"
|
||
echo "Done! Joplin has been removed."
|
||
echo "Note: Your notes and config files in ~/.config/ were kept for safety."
|
||
echo "-------------------------------------------------------"
|