Skip to content

misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux

Linux: the guide says what uninstalling leaves in each home folder, and how to remove it (part of #266) (#273)

Ahmed Nefzaoui294e05df4634
diff --git a/ROADMAP.md b/ROADMAP.md
index 442fc6a2..2a8493e8 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -13,6 +13,9 @@ Everything below ships together, in one release, as version 0.3.0.
### Done
+- ✅ Linux: the guide says what uninstalling leaves in each user's home folder (the browsers' host
+ files, the list and settings) and how to remove it; a package can't
+ ([#266](https://github.com/anefzaoui/misterdownloadmanager/issues/266))
- ✅ Linux: menus and drop-down lists open under what was clicked on tiling compositors (sway)
too, through XWayland, as on GNOME and KDE
([#267](https://github.com/anefzaoui/misterdownloadmanager/issues/267))
diff --git a/docs/browser-help.md b/docs/browser-help.md
index 342823a6..1d471d65 100644
--- a/docs/browser-help.md
+++ b/docs/browser-help.md
@@ -35,6 +35,7 @@ The browser started MDM's helper, but it stopped before answering. Security soft
- Allow `misterdownloadmanager-nmhost.exe` (in MDM's folder) in your antivirus or anti-malware program.
- Reinstall MDM to restore its files.
- On Linux, with Firefox or Chromium installed as a Snap, see [Flatpak and Snap browsers](#linux-sandbox).
+- Uninstalled MDM on Linux? Its browser files stay in your home folder: [remove them](getting-started.md#uninstall-linux), and the extension too.
## MDM doesn't accept this copy of the extension {#forbidden}
diff --git a/docs/getting-started.md b/docs/getting-started.md
index 265775cc..f79d14d6 100644
--- a/docs/getting-started.md
+++ b/docs/getting-started.md
@@ -34,6 +34,27 @@ Browser integration is set up by MDM itself at each start on Linux and macOS (th
In a Wayland session (GNOME, KDE Plasma and others), MDM's windows run through XWayland when it is there: Wayland doesn't let a program place its own windows, so MDM's menus and drop-down lists would open in the middle of the screen. To run on Wayland itself anyway, start it with `MDM_WAYLAND=1 misterdownloadmanager`. If the system lacks a library X11 windows need (such as libxkbcommon-x11, which the .deb and .rpm bring but the AppImage and the tar.gz can't), MDM opens on Wayland instead; with no window system it can use, it names what's missing and the command that installs it.
+#### Uninstall on Linux {#uninstall-linux}
+
+`sudo apt remove misterdownloadmanager` (or `sudo dnf remove misterdownloadmanager`) removes the
+programs; for the AppImage or the tar.gz, delete the file or the folder. What MDM keeps in your
+home folder stays, as with any package: your list and settings
+(`~/.local/share/misterdownloadmanager`) and the small files that tell your browsers where MDM's
+helper is. A package can't remove those: it never touches home folders. Without MDM they lead
+nowhere, so the extension says it can't reach MDM. To remove them as well, run this as each user
+who used MDM, **before** uninstalling:
+
+```sh
+misterdownloadmanager-nmhost --unregister
+```
+
+(From the AppImage: `~/.local/share/misterdownloadmanager/browser-host/misterdownloadmanager-nmhost --unregister`.)
+Already uninstalled? This removes the same files:
+
+```sh
+find ~/.mozilla ~/.librewolf ~/.config -name com.misterdownloadmanager.host.json -delete 2>/dev/null
+```
+
## Install with the setup
1. Run `MisterDownloadManager-<version>-setup.exe`.