Package Details: discord_arch_electron 0.0.37-1

Git Clone URL: (read-only, click to copy)
Package Base: discord_arch_electron
Description: Discord (popular voice + video app) using the system provided electron for increased security and performance
Upstream URL:
Keywords: chat discord discord-stable discordapp electron video voice
Licenses: custom
Conflicts: discord
Provides: discord
Submitter: johnnyapol
Maintainer: Zoddo (Thaodan)
Last Packager: Zoddo
Votes: 182
Popularity: 4.42
First Submitted: 2020-05-19 23:51 (UTC)
Last Updated: 2023-12-05 21:41 (UTC)

Dependencies (5)

Required by (18)

Sources (4)

Pinned Comments

Zoddo commented on 2022-09-15 17:54 (UTC) (edited on 2023-03-31 17:24 (UTC) by Zoddo)

Starting with 0.0.26-1 (2023-03-31):
  • Switched back to the main electron package (electron22)
  • Watching cameras and streams is working again
Starting with 0.0.20-1 (2022-09-15):
  • Bumped electron16 to electron19 (I still have blocking issues with electron20)
  • Added support for $XDG_CONFIG_HOME/discord-flags.conf: this works like electron-flags.conf, you can set in this file the command line flags you want to pass to electron when running Discord (there are some useful flags in the wiki, especially if you are experiencing lag in the Discord UI).

Discord requires an update, but this package isn't yet updated
Check the wiki.

The Discord UI is lagging
Try to add the flags recommended in the wiki in $XDG_CONFIG_HOME/discord-flags.conf.

Krisp not working
This is an issue that will likely never be fixed for this package. The Krisp module checks if Discord binaries are signed by Discord, which is not the case with this package.
See this comment and this GitHub issue for more details and possibles workarounds.

Latest Comments

1 2 3 4 5 6 .. 34 Next › Last »

StarterX4 commented on 2023-11-23 04:22 (UTC)

Sometimes it doesn't crash and I can successfully choose a window/screen, but it's loading forever.

StarterX4 commented on 2023-11-23 04:17 (UTC)

Works for me on Wayland, but crashes when I try to screenshare (KDE Plasma 5, XDG-Desktop-Portal window opens for like a second and Discord crashes). Screenshares work fine when I switch to electron22 in /bin/discord, even through xwaylandvideobridge.

Zoddo commented on 2023-11-13 21:11 (UTC)

@ItachiSan: Thanks for the reminder. I'm a bit blind currently as I don't use wayland on my machine, and I need to rebuild my test environment. I've reverted the package to electron24 for now, and will investigate once I can test on wayland again :)

ItachiSan commented on 2023-11-13 21:02 (UTC)

@Zoddo & @Thaodan: I am following up my previous message regarding Wayland support.

Discord works with Electron 25 on XWayland but not Wayland. Discord works with Electron 24 on both XWayland and pure Wayland. I would suggest using Electron 24 for the time being. Let me know if you want anything for troubleshooting :)

latteisnotcoffee commented on 2023-11-12 18:21 (UTC)

Just wanted to come in and say thank you <3

This has solved the scrolling issues I've had for years and keeps forcing me to go back to Windows every now and then when I get fed up of it

Thaodan commented on 2023-11-07 15:07 (UTC)

@ItachiSan: Or the other way around the wrapper script discord-flags.conf is redundant if the flags apply to discord.

ItachiSan commented on 2023-11-06 21:05 (UTC) (edited on 2023-11-07 09:33 (UTC) by ItachiSan)

Hi, I would recommend to call the Electron binary rather than the Arch wrapper script.

Namely instead of:

exec /usr/bin/${electron} /usr/share/${name}/resources/app.asar "${flags[@]}" "$@"

It is better to do:

exec /usr/lib/${electron}/electron /usr/share/${name}/resources/app.asar "${flags[@]}" "$@"

Because otherwise both the flags from discord-flags.conf and {electron}-flags.conf get read.

This caused my Discord to crash when I created my electron25-flags.conf as Wayland flags do not work with it.

EDIT 1 Electron 24 works with no issues with Wayland flags. I recommend using that instead.

EDIT 2 Electron 24 works also with the Discord app 0.0.34.

SunRed commented on 2023-10-31 18:22 (UTC)

@reeeeeeeeeeelity Sorry but before taking my changes I would kindly ask to just merge this entire package into discord-electron as it would otherwise be the exact same package at that point.

reeeeeeeeeeelity commented on 2023-10-25 07:12 (UTC)

Great work! Wonder if you're willing to "Patch Krisp binary to ignore signature check" like the other package discord-electron. I have tested and it works with this package. Also set electron version to be 24 to make wayland work.

diff --git a/.SRCINFO b/.SRCINFO
index 2fd87aa..04862eb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,8 +6,9 @@ pkgbase = discord_arch_electron
    arch = any
    license = custom
    makedepends = asar
-   depends = electron
+   depends = electron24
    depends = libxss
+   depends = rizin
    optdepends = libpulse: Pulseaudio support
    optdepends = xdg-utils: Open files
    provides = discord
@@ -18,7 +19,7 @@ pkgbase = discord_arch_electron
    source = LICENSE.html::
    source = OSS-LICENSES.html::
    sha512sums = e3ca9075e4a66c7c4358bdccb748f8f849de24cf3036b85d2c42dd15f8e56125fc42e86e73920751126b0e4fa73596a1d7af1f21ac9903911d6c843637c46813
-   sha512sums = d398351b209cd89432d8e9cebe9122f152484236d8ca4dd91e5679d3853fe2f082625d35a9ac3f450f1f08250736bf3a23db9926311e8271730d884b57d12dbc
+   sha512sums = 7824fb20f1065d89a964fe5977212324410711fe472a3b0e64b90e8148f98ed1524bbff709f88d00ef9b532cc81140d4a118c372e735f71c78f4d2baa3f6a7be
    sha512sums = SKIP
    sha512sums = SKIP

diff --git a/PKGBUILD b/PKGBUILD
index cc9f614..59771c3 100644
@@ -4,7 +4,7 @@
 # Contributor: johnnyapol <>
 # Based off the discord community repo PKGBUILD by Filipe Laíns (FFY00) <>
@@ -15,7 +15,7 @@ conflicts=("${_pkgname}")
-depends=("${_electron}" 'libxss')
+depends=("${_electron}" 'libxss' 'rizin')
 optdepends=('libpulse: Pulseaudio support'
             'xdg-utils: Open files')
@@ -24,12 +24,14 @@ source=("$pkgver/$_pkgname-$pkgver.tar.gz"
-            'd398351b209cd89432d8e9cebe9122f152484236d8ca4dd91e5679d3853fe2f082625d35a9ac3f450f1f08250736bf3a23db9926311e8271730d884b57d12dbc'
+            '7824fb20f1065d89a964fe5977212324410711fe472a3b0e64b90e8148f98ed1524bbff709f88d00ef9b532cc81140d4a118c372e735f71c78f4d2baa3f6a7be'

 prepare() {
-  sed -i "s|@PKGNAME@|${_pkgname}|;s|@ELECTRON@|${_electron}|"
+  sed -i "s|@PKGNAME@|${_pkgname}|g;s|@PKGVER@|${pkgver}|g;s|@ELECTRON@|${_electron}|g;s|@KRISPB2@|${_krisp_b2sum}|g"
   sed -i "s|Exec=.*|Exec=/usr/bin/$_pkgname|" Discord/discord.desktop

diff --git a/ b/
index 6e6f47e..121d69c 100755
--- a/
+++ b/
@@ -8,6 +8,18 @@ flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/${name}-flags.conf"

 declare -a flags

+if hash rizin &> /dev/null; then
+   # Patch Krisp binary to ignore signature check
+   if [[ -f "${krisp_bin}" && $(b2sum "${krisp_bin}" | head -c 128) == $krisp_b2 ]]; then
+       addr=$(rz-find -x '4881ec00010000' "${krisp_bin}" | head -n1)
+       rizin -q -w -c "s $addr + 0x30 ; wao nop" "${krisp_bin}" &> /dev/null
+   fi
 if [[ -f "${flags_file}" ]]; then
     mapfile -t < "${flags_file}"

Zoddo commented on 2023-10-19 18:28 (UTC) (edited on 2023-10-19 18:31 (UTC) by Zoddo)

@Lightning5: That file isn't part of the package, but is dynamically created by Discord in your home directory when you start it. It would be possible to dynamically patch it in the launcher script, but there are edge cases like if you never started Discord before, the file doesn't yet exist, or what if you want to keep the option disabled?

Additionally, on top of the Arch package guideline that prohibits packages from including files in /home, I believe this extends to not touching any file in this directory in any way as a packager (install scripts, wrappers...) unless absolutely required to make the package work.

IMO, Discord should instead provide a system-wide option that distribution packagers can use to disable the built-in "updater".

For now, you can patch the file manually; it's a one-time action that you can then forget about.