A safe and portable auto-updater wrapper for Discord on Linux. This replaces the default Discord launcher with a wrapper that:
- Checks the currently installed version
- Downloads the latest release from the official Discord API
- Updates only when needed
- Restarts Discord automatically
-
β Safe process handling β only kills legitimate Discord GUI processes (not the updater or unrelated processes)
-
β Cross-distro support
- Debian/Ubuntu β uses official
.debpackages - Other distros β falls back to official
.tar.gzpackages (/opt/discord)
- Debian/Ubuntu β uses official
-
β Atomic updates β version is compared before install, minimizing downloads
-
β Stable wrapper path β lives in
/usr/local/lib/discord-updater/, not/tmp -
β Locking β prevents race conditions if you double-launch
-
β Configurable channel β supports
stable,canary, orptbviaDISCORD_CHANNEL -
β Least privilege β uses
sudoonly for package installation or system-wide changes
Run the following commands:
curl -L https://raw.githubusercontent.com/Doc0x1/Discord-Auto-Updater-For-Linux/master/setup_discord_update.sh -o setup_discord_update.sh
chmod +x setup_discord_update.sh
sudo ./setup_discord_update.shJust launch Discord as usual from your applications menu or by running:
discordThe wrapper will:
-
Acquire a lock (no multiple updaters running at once)
-
Check your installed version (
build_info.json) -
Download the latest
.debor.tar.gzfrom Discordβs servers -
If a newer version exists:
- Close running Discord instances safely
- Install the update
- Relaunch Discord
-
If up to date:
- Skip update and launch immediately
By default, the updater installs the stable release. To use canary or ptb, set the environment variable in your shell or profile:
export DISCORD_CHANNEL=canaryAdd to ~/.profile or ~/.bashrc to make it persistent.
-
Debian/Ubuntu (using
.deb):/usr/share/discord- Original binary moved to
/usr/share/discord/Discord.orig - Wrapper replaces
/usr/share/discord/Discord
- Original binary moved to
-
Other distros (using
.tar.gz):/opt/discord- Wrapper installed as
/usr/local/bin/discord - Desktop entry created in
/usr/local/share/applications/discord.desktop
- Wrapper installed as
Logs are stored in:
~/.local/state/discord-updater/logs/run.log
Useful for troubleshooting update issues.
- Add checksum verification for extra safety
- Add optional systemd timer for background silent updates
- Add user config file for advanced settings
This tool downloads official Discord builds directly from Discordβs API. It does not modify Discord binaries beyond installation. Use at your own risk.