diff --git a/LICENSE b/LICENSE index 1f945ea..0381a9f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2026 Soeren +Copyright (c) 2026 arentro Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including diff --git a/README.md b/README.md index 2aa9b45..d160a26 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,44 @@ -# uninstall_joplin_linux +# Joplin Uninstall Script for Linux +This is an unofficial uninstallation script for the **Joplin Desktop Application** on Linux. + +## Description +The official Joplin installation method uses a shell script (`Joplin_install_and_update.sh`) that downloads the AppImage and sets up desktop integration. However, there is no official "uninstall" script provided by the developers. + +This utility fills that gap by cleanly removing the application binaries, the desktop entry, and the application icon from your system. + +## Usage + +1. **Download the script** or create a file named `uninstall_joplin.sh` and paste the code into it. +2. **Make the script executable**: + ```bash + chmod +x uninstall_joplin.sh + ``` +3. **Run the script**: + ```bash + ./uninstall_joplin.sh + ``` + +## What this script removes +The script targets the default paths used by the official installation script: +- **Application Folder:** `~/.joplin` (Contains the AppImage and version info) +- **Desktop Entry:** `~/.local/share/applications/appimagekit-joplin.desktop` (Removes Joplin from your app menu) +- **Application Icon:** `~/.local/share/icons/hicolor/512x512/apps/joplin.png` + +## Important: User Data & Settings +**This script does NOT delete your notes or configuration.** + +To ensure that users do not accidentally lose their data, the following directories are **preserved**: +- `~/.config/joplin` +- `~/.config/joplin-desktop` + +If you wish to perform a complete "factory reset" and delete all your local notes and settings, you can manually run: +```bash +rm -rf ~/.config/joplin ~/.config/joplin-desktop +``` + +## Disclaimer +This script is **not** officially affiliated with the Joplin project. Use it at your own risk. Always make sure to have a backup of your notes before performing system cleanups. + +--- +*Contributed by arentro* diff --git a/uninstall_joplin.sh b/uninstall_joplin.sh new file mode 100755 index 0000000..16b5ad0 --- /dev/null +++ b/uninstall_joplin.sh @@ -0,0 +1,33 @@ +#!/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 "-------------------------------------------------------"