Color me surprised, but the Discord bug is still in electron 11.2.1. Guess I'll have to eat it for now...
More info:
Upstream bug report: https://github.com/electron/electron/issues/27303
(Open at the time of comment) PR: https://github.com/electron/electron/pull/27441
Until those bugs are fixed go back to electron 11.1.1 (or earlier, if you fancy) else discord will NOT start! Hold the electron update if you have it on your cache still.
EDIT: I updated electron-ozone with a patch for the fix. There's still an issue on mainline electron which will be fixed on 11.2.2.
Pinned Comments
Kodehawa commented on 2020-10-22 04:06 (UTC) (edited on 2024-01-04 20:06 (UTC) by Kodehawa)
A shoutout to https://aur.archlinux.org/packages/discord_arch_electron/ (use that one if you want stable instead of canary!) :p
This is just a PKGBUILD based on the original discord-canary PKGBUILD and the discord_arch_electron PKGBUILD to use with Canary instead.
Discord on the latest version uses Electron 22 by itself. Might be worth using the official version if that is what you're after.
!! As Electron 28 joined the official repos, I've pinned this to electron26 instead, as using Electron 28 results on a crash at startup. If it ever works with Electron 28, please let me know.