Package Details: discord_arch_electron 0.0.55-1

Git Clone URL: https://aur.archlinux.org/discord_arch_electron.git (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: 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: 190
Popularity: 4.12
First Submitted: 2020-05-19 23:51 (UTC)
Last Updated: 2024-06-05 17:17 (UTC)

Dependencies (5)

Required by (22)

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).
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 .. 3 4 5 6 7 8 9 10 11 12 13 .. 35 Next › Last »

Zoddo commented on 2023-04-01 19:39 (UTC) (edited on 2023-04-01 19:40 (UTC) by Zoddo)

If you are still using the --ozone-platform=wayland, it looks like this should be replaced by --ozone-platform-hint=auto with electron20+.

If this doesn't fix the segfault, could you get a coredump (in most case, systemd will store one for you, check coredumpctl list), open it with gdb and print the backtrace (bt command)?
This should at least tell us if the segfault is coming from electron itself, or from a Discord's native module (last time I checked, Discord modules included some symbols).

bbaovanc commented on 2023-04-01 19:07 (UTC) (edited on 2023-04-01 19:23 (UTC) by bbaovanc)

@Zoddo This package does start after removing the Wayland flags, but only because it then uses X11 (via Xwayland) instead of Wayland, and Xwayland apps are completely unusable with graphical bugs on Nvidia.

I just realized that the official discord package was ignoring my electron flags. Not sure how to fix that, but using the exact same flags to run discord manually from a terminal works fine. It's running in native Wayland too. It does have those mesa errors too though, so I guess ignore them.

So there's still some difference between this and the official discord package.

Zoddo commented on 2023-04-01 11:04 (UTC)

@bbaovanc afaik, these mesa warnings are "normal" on Nvidia.

For Wayland, I won't be able to help much because I'm not using it myself. Could you still try to remove Wayland flags as suggested by mattj and check if it starts without them?

The official package and this one use almost the same electron version (Discord bundle 22.3.2, and the latest electron in official repos is currently 22.3.3), so the only difference is likely the flags you've set with this package.

bbaovanc commented on 2023-04-01 00:18 (UTC) (edited on 2023-04-01 00:24 (UTC) by bbaovanc)

Can we figure out what the cause of the segfault is? It doesn't happen on the latest Discord package (the one in community), yet latest Discord's packaged Electron is 22.

I get these errors when starting it, they might be the culprit?

MESA-LOADER: failed to open nvidia-drm: /usr/lib/gbm/nvidia-drm_gbm.so: cannot open shared object file: Permission denied (search paths /usr/lib/gbm, suffix _gbm)
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open nvidia-drm: /usr/lib/dri/nvidia-drm_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/dri, suffix _dri)

And removing the Wayland flags from my config isn't really an option because Xwayland is almost unusable on Nvidia.

tsweet64 commented on 2023-03-31 23:32 (UTC)

I had to change it back to electron19 to prevent segfault on start

mattj commented on 2023-03-31 21:26 (UTC)

If anybody else gets segfaults with the latest version (0.0.26-1) and version 22 of the electron package: I found removing my (previously required) Wayland flags from the .conf solved it.

Zoddo commented on 2023-03-31 17:15 (UTC)

While updating to 0.0.26, I switched back to the main electron package (Discord updated their own version to electron22). This also allowed me to remove a workaround around the modules path that was previously needed for electron17+.

This also fixed the crash while watching cameras and streams.

I'll see about setting up something to auto-update this package. However, I strongly encourage you to disable version checks to be able to start Discord even if the package isn't yet updated: https://wiki.archlinux.org/title/Discord#Discord_asks_for_an_update_not_yet_available_in_the_repository

m0x commented on 2023-03-31 15:28 (UTC)

For those waiting for the package to be updated, you can edit the PKGBUILD to the new version, 0.26.

https://dl.discordapp.net/apps/linux/0.0.26/discord-0.0.26.tar.gz

Also update the SHA512 entry to: 65477c2c033f30850a699706a6502ff4f4af8838185716d968d641fdab3033555139b04bf91a111a847aca14113e33ba6248d49ba317fd43cbacb099e974117b

Feel free to bump the Electron version while you are at it :P

mdhen commented on 2023-03-31 12:22 (UTC)

This is a really bad package to allow out of date.

zookee1 commented on 2023-03-31 10:37 (UTC) (edited on 2023-03-31 10:37 (UTC) by zookee1)

Is there a reason why the source package does not get updated automatically? - mathisbuilder

I will second this question, as the package is out-of-date again.