Thanks to visit codestin.com
Credit goes to github.com

Skip to content

wilop/discord-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Discord Updater

Discord Updater is a script designed to simplify updating your Discord client on Linux (tar.gz version).


Features

  • 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_UPDATE setting to control Discord's automatic updates.
  • Automatic detection: Finds your Discord installation automatically or allows you to specify the path manually.

Important Behavior

Note: This script only updates the version information in the build_info.json file. 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.


Usage

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 symlink

If 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 and Uninstallation

  • 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/bin so you can run discord-updater from anywhere.

  • Uninstallation: Run:

    ./discord-updater.sh --uninstall

    This removes the script, launcher, and symlink.


Requirements

  • Bash
  • Standard Linux utilities: cat, sed, tr, sudo, curl, grep, dirname, readlink, killall
  • For graphical dialogs: Zenity or KDialog (optional)

Important Notes

  • 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.

License

MIT


Author

wilop

About

Another script to update Discord Linux client (tar.gz).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages