Package Details: discord_arch_electron 0.0.78-1

Git Clone URL: https://aur.archlinux.org/discord_arch_electron.git (read-only, click to copy)
Package Base: discord_arch_electron
Description: Discord using system provided electron for increased security and performance
Upstream URL: https://discord.com
Keywords: chat discord discord-stable discordapp electron video voice
Licenses: custom
Conflicts: discord
Provides: discord
Submitter: johnnyapol
Maintainer: Zoddo (Thaodan, SunRed)
Last Packager: Zoddo
Votes: 197
Popularity: 4.19
First Submitted: 2020-05-19 23:51 (UTC)
Last Updated: 2024-12-17 20:22 (UTC)

Dependencies (9)

Required by (25)

Sources (3)

Pinned Comments

SunRed commented on 2024-06-09 20:34 (UTC)

After a chat with @Zoddo and me just taking too long to come back to this, there should everything now be included that was in my old discord-electron package some migrated from (Krisp patcher, Wayland, autostart fix). Additionally I replaced the scrappy rizin patcher with a Python script someone from the nix community kindly made available.
Instead of checking against a checksum to know whether the Krisp binary was patched the script is run on every start of the client that results in slightly longer start times but has the advantage that we don't have to update the package if Discord ever silently updates the binary between client updates over their modules api.

Cheers

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).
FAQ

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

« First ‹ Previous 1 .. 26 27 28 29 30 31 32 33 34 35 36 .. 39 Next › Last »

MuffinBomber commented on 2021-08-18 05:40 (UTC)

@Neko-san Create ~/.config/firejail/discord.local that contains

whitelist ${HOME}/.config/discord
private-bin bash,cut,echo,egrep,electron,electron[0-9],electron[0-9][0-9],fish,grep,head,sed,sh,tclsh,tr,xdg-mime,xdg-open,zsh
ignore private-tmp
ignore novideo
ignore noaudio

Neko-san commented on 2021-08-17 08:06 (UTC)

Would someone be able to tell me how to run this in firejail? I tried to do so with:

firejail --profile=/etc/firejail/discord.profile /usr/bin/discord --enable-accelerated-mjpeg-decode --enable-accelerated-video --ignore-gpu-blacklist --enable-native-gpu-memory-buffers --enable-gpu-rasterization

but it just wouldn't work :/

Neko-san commented on 2021-07-28 06:41 (UTC)

@johnnyapol A friend of mine found an awesome solution to an irritating issue I've had for ages

For some reason, Discord suffers from a weird low FPS issue on Linux and has for a long time but he figured out how to fix it just by appending this line to the end of the exec call in the .desktop file:

--enable-accelerated-mjpeg-decode --enable-accelerated-video --ignore-gpu-blacklist --enable-native-gpu-memory-buffers --enable-gpu-rasterization

Despite some of these arguments actually being enabled in the settings and not fixing the issue, doing this somehow fixes the slow and jagged loading and animations in Discord

IoIxD commented on 2021-07-13 19:00 (UTC) (edited on 2021-07-13 19:05 (UTC) by IoIxD)

This uses more memory then regular Discord on my end; close to 1GB used as opposed to vanilla Discord's 750-800MB. What exactly do you mean by "increased performance"?

EDIT: I reinstalled it one last time and it seems to use 0-1% cpu as opposed to Discord's 2%. I guess that's a performance improvement but it also randomly jumps up to 11% if not more, so I don't think it's worth it. I wager that on weaker hardware (I am using an 8 core Ryzen which boosts to 4GHz) it makes more of a difference.

<deleted-account> commented on 2021-07-07 08:48 (UTC)

Has anyone managed to use BetterDiscord with this package?

godvino commented on 2021-07-04 09:57 (UTC)

Would it be possible to integrate something like https://github.com/flathub/com.discordapp.Discord/pull/155 into this AUR package ?

perigoso commented on 2021-06-21 17:54 (UTC) (edited on 2021-07-01 14:19 (UTC) by perigoso)

I had the same issues as @Friz64, following his fix, i modified the PKGBUILD to use the existing repo pkg electron12, this fixed it without altering/downgrading the system default electron

diff:
14c14
< depends=('electron')
---
> depends=('electron12')
49c49
<   echo "exec electron /usr/lib/$_pkgname/app.asar \$@" >> "$srcdir"/$_pkgname
---
>   echo "exec electron12 /usr/lib/$_pkgname/app.asar \$@" >> "$srcdir"/$_pkgname

Consider an approach like the vscode package PKGBUILD with a electron variable _electron=electron12 since this seems to be a recurring issue

I also agree the package should be renamed to discord-electron

Friz64 commented on 2021-06-19 13:21 (UTC)

Arch Linux's update to electron 13 (13.1.2-1) has introduced some issues for me on GNOME/X11/AMD

  • Desktop notifications are missing
  • The navigation bar on the left has become really laggy

Downgrading to electron 12 seems to solve my issue for now: https://wiki.archlinux.org/title/Downgrading_packages#Using_the_pacman_cache