Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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, you can take a look at betterdiscordctl's README.

Please don't sumbit issues here as I don't check the comments often. You should sumbit them here instead.

Install dependencies

Git

Install using your package manager

Node & npm

Install using your package manager or download a binary package

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:

$ betterdiscordctl upgrade

Install BetterDiscord

Replace [COMMAND] with install to install BD for the first time, update to update an existing installation, or uninstall to uninstall an existing installation.

Replace [PATH] with the path to Discord's parent directory. For example, if Discord is installed in /usr/share/discord, [PATH] should be /usr/share.

  • For Stable
$ betterdiscordctl [COMMAND] -s [PATH]
  • For PTB
$ betterdiscordctl [COMMAND] -s [PATH] -f PTB
  • For Canary
$ betterdiscordctl [COMMAND] -s [PATH] -f Canary
  • For Snap
$ betterdiscordctl [COMMAND] --snap
  • For Flatpak
$ betterdiscordctl [COMMAND] --flatpak

Common Issues

npm : command not found

You don't have npm installed. Install it.

asar.js: No such file or directory

Install asar globally with sudo npm install -g asar and then use betterdiscordctl's --global-asar option.

Credits

BetterDiscord by Jiiks

Bandaged BD by Zerebos (rauenzi)

betterdiscordctl by bb010g

@YamiYukiSenpai

This comment has been minimized.

Show comment
Hide comment
@YamiYukiSenpai

YamiYukiSenpai Feb 11, 2018

Does this work with the Snap version of Discord?
Edit: any plans on making this work with Snap version of Discord?

YamiYukiSenpai commented Feb 11, 2018

Does this work with the Snap version of Discord?
Edit: any plans on making this work with Snap version of Discord?

@ObserverOfTime

This comment has been minimized.

Show comment
Hide comment
@ObserverOfTime

ObserverOfTime Feb 11, 2018

Updated to work with the Snap version of Discord.

Owner

ObserverOfTime commented Feb 11, 2018

Updated to work with the Snap version of Discord.

@RemixSlay

This comment has been minimized.

Show comment
Hide comment
@RemixSlay

RemixSlay Feb 15, 2018

Tried to install stable and this happened
Error: Cannot find module './core'
at Module._resolveFilename (module.js:470:15)
at Function.Module._resolveFilename (/usr/share/discord/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/root/.config/discord/0.0.4/modules/discord_desktop_core/index.js:1:173)
at Object. (/root/.config/discord/0.0.4/modules/discord_desktop_core/index.js:2:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)

Tried to install stable and this happened
Error: Cannot find module './core'
at Module._resolveFilename (module.js:470:15)
at Function.Module._resolveFilename (/usr/share/discord/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/root/.config/discord/0.0.4/modules/discord_desktop_core/index.js:1:173)
at Object. (/root/.config/discord/0.0.4/modules/discord_desktop_core/index.js:2:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Feb 17, 2018

image
I'm getting the same problem when installing into both Discord Canary and Discord. (Ubuntu MATE) That said, I don't know to reverse this either, so I've been using the snap version of Discord without trying to install BetterDiscord.

edit:
You can fix this error by deleting the discordcanary folder in /.config/ and discord-canary in /usr/share, then reinstalling it. I'd imagine you can do the same with the Discord stable as well. Have not been able to get BetterDiscord working though.

edit 2:
Got it to work, but I merely just followed the instructions here again. If all else fails I suggest going to the BetterDiscord2 server and searching "linux in:faq" for answers rather than asking.

ghost commented Feb 17, 2018

image
I'm getting the same problem when installing into both Discord Canary and Discord. (Ubuntu MATE) That said, I don't know to reverse this either, so I've been using the snap version of Discord without trying to install BetterDiscord.

edit:
You can fix this error by deleting the discordcanary folder in /.config/ and discord-canary in /usr/share, then reinstalling it. I'd imagine you can do the same with the Discord stable as well. Have not been able to get BetterDiscord working though.

edit 2:
Got it to work, but I merely just followed the instructions here again. If all else fails I suggest going to the BetterDiscord2 server and searching "linux in:faq" for answers rather than asking.

@ObserverOfTime

This comment has been minimized.

Show comment
Hide comment
@ObserverOfTime

ObserverOfTime Feb 18, 2018

@RemixSlay Don't install with sudo.

Owner

ObserverOfTime commented Feb 18, 2018

@RemixSlay Don't install with sudo.

@RemixSlay

This comment has been minimized.

Show comment
Hide comment
@RemixSlay

RemixSlay Feb 20, 2018

didnt use sudo, im on the root account....

didnt use sudo, im on the root account....

@RemixSlay

This comment has been minimized.

Show comment
Hide comment
@RemixSlay

RemixSlay Feb 20, 2018

i did what @vozycozyx said and i got back into discord

i did what @vozycozyx said and i got back into discord

@TheBNK3R

This comment has been minimized.

Show comment
Hide comment
@TheBNK3R

TheBNK3R Mar 12, 2018

ERROR: Discord installation not found.

ERROR: Discord installation not found.

@miakx

This comment has been minimized.

Show comment
Hide comment
@miakx

miakx Mar 13, 2018

I got the same error as Trihash, even on Stable or Snap, the config directory isn't found (though it not exists).

miakx commented Mar 13, 2018

I got the same error as Trihash, even on Stable or Snap, the config directory isn't found (though it not exists).

@ObserverOfTime

This comment has been minimized.

Show comment
Hide comment
@ObserverOfTime

ObserverOfTime Mar 15, 2018

@trihash You will need to elaborate more on the issue you have sumbitted.
@miakx Please check the same issue and comment there if it remains unsolved for you.

Owner

ObserverOfTime commented Mar 15, 2018

@trihash You will need to elaborate more on the issue you have sumbitted.
@miakx Please check the same issue and comment there if it remains unsolved for you.

@Shardvex

This comment has been minimized.

Show comment
Hide comment
@Shardvex

Shardvex May 3, 2018

@trihash - maybe you got the wrong installation directory. See where discord files are located using the following command:

find / -name discord 2> /dev/null

As it turns out, /opt worked for me.

Shardvex commented May 3, 2018

@trihash - maybe you got the wrong installation directory. See where discord files are located using the following command:

find / -name discord 2> /dev/null

As it turns out, /opt worked for me.

@PrismaticYT

This comment has been minimized.

Show comment
Hide comment
@PrismaticYT

PrismaticYT May 13, 2018

ERROR: Discord installation not found
I tried /usr/bin/discord and /usr/share/discord, neither worked. It's not in /opt (/opt is empty.)

ERROR: Discord installation not found
I tried /usr/bin/discord and /usr/share/discord, neither worked. It's not in /opt (/opt is empty.)

@accoll

This comment has been minimized.

Show comment
Hide comment
@accoll

accoll May 21, 2018

I didn't get any errors, It seems to have installed fine, but, the status says the app is not patched and it doesn't appear to have changed the discord app at all.

accoll commented May 21, 2018

I didn't get any errors, It seems to have installed fine, but, the status says the app is not patched and it doesn't appear to have changed the discord app at all.

@soeene

This comment has been minimized.

Show comment
Hide comment
@soeene

soeene May 29, 2018

@ObserverOfTime

i put betterdiscordctl install -s /usr/share and this came out
WARN: Config directory not found for (/usr/share/discord, /home/spencer/.config/discord).
ERROR: Discord installation not found.

soeene commented May 29, 2018

@ObserverOfTime

i put betterdiscordctl install -s /usr/share and this came out
WARN: Config directory not found for (/usr/share/discord, /home/spencer/.config/discord).
ERROR: Discord installation not found.

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