Skip to content

Instantly share code, notes, and snippets.

@ObserverOfTime
Last active July 22, 2024 15:05
Show Gist options
  • Save ObserverOfTime/d7e60eb9aa7fe837545c8cb77cf31172 to your computer and use it in GitHub Desktop.
Save ObserverOfTime/d7e60eb9aa7fe837545c8cb77cf31172 to your computer and use it in GitHub Desktop.
Install BetterDiscord on Linux

Install BetterDiscord on Linux

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 dependencies

Curl

Install using your package manager

Install betterdiscordctl

$ 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

Install BetterDiscord

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]

Credits

BetterDiscord by Jiiks

Bandaged BD by Zerebos (rauenzi)

@AskAlice
Copy link

anyone got a working pacman hook?

@mesaprotector
Copy link

anyone got a working pacman hook?

Probably not optimal, but this works for me.

[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Target = discord*

[Action]
Description = Rebuild BetterDiscord after Discord update
When = PostTransaction
Exec = /usr/bin/sudo -u USERNAME betterdiscordctl reinstall
NeedsTargets

@AskAlice
Copy link

AskAlice commented Jun 11, 2024

ahh yeah i think where i went wrong was putting two dashes between the sudo param and the betterdiscordctl cmd. ty 👍
[Trigger]
Operation=Upgrade
Type=Package
Target=discord

[Action]
Description=Update BetterDiscord
When=PostTransaction
Exec=runuser -u alice -- /usr/local/bin/betterdiscordctl reinstall 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment