This Gist contains simple instructions on how to install, update, and uninstall BetterDiscord on Linux.
For more thorough documentation,
take a look at betterdiscordctl
's README.
Do NOT submit issues here as I don't check the comments. You should submit them here instead.
Install using your package manager
$ curl -O https://raw.githubusercontent.com/bb010g/betterdiscordctl/master/betterdiscordctl
$ chmod +x betterdiscordctl
$ sudo mv betterdiscordctl /usr/local/bin
You can then keep
betterdiscordctl
up to date with this command:$ sudo betterdiscordctl self-upgrade
Replace [COMMAND]
with install
to install BD for the first time,
reinstall
to reinstall BD after a Discord update,
or uninstall
to uninstall an existing installation.
- For Stable
$ betterdiscordctl [COMMAND]
- For PTB
$ betterdiscordctl --flavor PTB [COMMAND]
- For Canary
$ betterdiscordctl --flavor Canary [COMMAND]
- For Snap
$ betterdiscordctl --d-install snap [COMMAND]
- For Flatpak
$ betterdiscordctl --d-install flatpak [COMMAND]
Very late update :) and maybe the above works for your needs, but I figured out that I actually need to get Discord to update through its own installer and then only after inject betterdiscord. The following is a hack but it does work. This will terminate with Discord not running but fully updated; if you want a hook that ends with Discord running, good luck.
[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Target = discord*
[Action]
Description = Rebuild BetterDiscord after Discord update
When = PostTransaction
Exec = /usr/bin/sh -c 'sudo -u USERNAME betterdiscordctl reinstall; sudo -u USERNAME discord --help; sudo -u USERNAME betterdiscordctl install'
NeedsTargets
What "discord --help" does is causes the auto-updater to crash as soon as it finishes updating because it doesn't understand the option :) No guarantee how long it will continue to work, but for the past month it's run very smoothly.