Discord Updater is a script designed to simplify updating your Discord client on Linux (tar.gz version).
- Automatic version checking: Compares your installed Discord version with the latest available.
- Graphical confirmation dialog: If a new version is detected, you'll be prompted via a graphical dialog (Zenity/KDialog) or terminal prompt. If no update is available, Discord will launch as usual.
- Install and uninstall modes: Easily install or remove the updater script, a desktop launcher, and a symlink for convenient access.
- Update control: Optionally add or remove the
SKIP_HOST_UPDATEsetting to control Discord's automatic updates. - Automatic detection: Finds your Discord installation automatically or allows you to specify the path manually.
Note: This script only updates the version information in the
build_info.jsonfile. When Discord is restarted, it may update its internal modules according to the new version number. For a complete update, it is recommended to review the Discord Path Notes.
Execute the script with one of the following options:
./discord-updater.sh -h # Display help and usage instructions
./discord-updater.sh -u # Update build_info.json
./discord-updater.sh -e # Update build_info and launch Discord
./discord-updater.sh -S # Add 'SKIP_HOST_UPDATE' (disable Discord's auto-update)
./discord-updater.sh -s # Remove 'SKIP_HOST_UPDATE' (enable Discord's auto-update)
./discord-updater.sh --install # Install the updater, desktop launcher, and symlink
./discord-updater.sh --uninstall # Remove the updater, launcher, and symlinkIf Discord’s installation is not detected automatically, you can provide the path manually as the second argument:
./discord-updater.sh -u /usr/share/discord-
Installation: The script will be copied to
~/.local/share/discord-updater, a desktop launcher will be added to your application menu, and a symlink will be created in/usr/binso you can rundiscord-updaterfrom anywhere. -
Uninstallation: Run:
./discord-updater.sh --uninstall
This removes the script, launcher, and symlink.
- Bash
- Standard Linux utilities:
cat,sed,tr,sudo,curl,grep,dirname,readlink,killall - For graphical dialogs: Zenity or KDialog (optional)
- The script modifies Discord’s configuration files directly. If Discord changes their settings format, updates to this script may be needed.
- The icon path is set to
/usr/share/pixmaps/discord.png. Adjust this if your system uses a different location.
MIT