Package Details: discord-electron-openasar 0.0.96+834-1

Git Clone URL: https://aur.archlinux.org/discord-electron-openasar.git (read-only, click to copy)
Package Base: discord-electron-openasar
Description: Discord packaged with OpenAsar using system provided electron (v36) for increased security and performance
Upstream URL: https://discord.com
Keywords: discord discord-stable discordapp electron openasar
Licenses: custom
Conflicts: discord
Provides: discord
Submitter: SunRed
Maintainer: SunRed
Last Packager: SunRed
Votes: 13
Popularity: 0.91
First Submitted: 2023-04-03 07:00 (UTC)
Last Updated: 2025-06-05 19:30 (UTC)

Dependencies (12)

Required by (28)

Sources (4)

Pinned Comments

SunRed commented on 2024-01-04 14:30 (UTC) (edited on 2024-06-10 19:00 (UTC) by SunRed)

Electron flags

These can be set additionally in ~/.config/discord-flags.conf (or wherever your config directory is). Lines can be commented using #.

Krisp noise suppression

In order for Krisp to work, it has to be patched first by removing the signature check of the Krisp binary. Install the necessary optional dependencies, set PATCH_KRISP=true in ~/.config/discord.conf and restart your Discord client.
Please note that 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 the package does not have to be updated if Discord ever silently updates the binary between client updates over their modules api.

Latest Comments

« First ‹ Previous 1 2 3 4 5

Sukid commented on 2023-09-01 21:32 (UTC)

@AsukaMinato If all else fails, delete the entire contents of the .config/discord directory. I haven't figured out which parts actually need deleting but just getting rid of everything with the word "cache" in it wasn't enough for me in particular.

(granted, I'm not using this package specifically -- I just put the download from the discord website in my .local/opt/ dir, replace the app.asar with openasar, and then have a launch script in .local/bin . Same idea overall just different method)

AsukaMinato commented on 2023-07-16 20:16 (UTC)

It keeps crashing.

✖  ELECTRON_ENABLE_LOGGING=1 discord
[OpenAsar > Init] OpenAsar nightly-cd44357
[OpenAsar > Settings] /home/w/.config/discord/settings.json {
  BACKGROUND_COLOR: '#202225',
  IS_MAXIMIZED: true,
  IS_MINIMIZED: false,
  WINDOW_BOUNDS: { x: 0, y: 71, width: 2048, height: 1081 },
  openasar: { setup: true, quickstart: true },
  trayBalloonShown: true
}
[OpenAsar > BuildInfo] { releaseChannel: 'stable', version: '0.0.27' }
[321086:0717/051323.229964:WARNING:wayland_object.cc(144)] Binding to wl_seat version 5 but version 8 is available.
[321086:0717/051323.230025:WARNING:wayland_object.cc(144)] Binding to zwp_pointer_gestures_v1 version 1 but version 3 is available.
[321086:0717/051323.230080:WARNING:wayland_object.cc(144)] Binding to zwp_linux_dmabuf_v1 version 3 but version 4 is available.
[321086:0717/051323.348415:ERROR:browser_main_loop.cc(271)] Gdk: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed
[OpenAsar > Modules] Checking
[321128:0717/051323.406972:ERROR:gpu_init.cc(523)] Passthrough is not supported, GL is egl, ANGLE is 
[321128:0717/051323.410577:WARNING:sandbox_linux.cc(380)] InitializeSandbox() called with multiple threads in process gpu-process.
[321086:0717/051323.424599:WARNING:wayland_surface.cc(149)] Server doesn't support zcr_alpha_compositing_v1.
[321086:0717/051323.424647:WARNING:wayland_surface.cc(164)] Server doesn't support overlay_prioritizer.
[321086:0717/051323.424651:WARNING:wayland_surface.cc(178)] Server doesn't support surface_augmenter.
[321086:0717/051323.424661:WARNING:wayland_surface.cc(212)] Server doesn't support zcr_color_management_surface.
[321086:0717/051323.425244:WARNING:cursor_loader.cc(133)] Failed to load a platform cursor of type kNull
[321086:0717/051323.430488:WARNING:xdg_activation.cc(86)] Cannot activate a window because no active windows found!
[321086:0717/051323.430550:WARNING:xdg_activation.cc(86)] Cannot activate a window because no active windows found!
[321086:0717/051323.438333:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
[321086:0717/051323.809637:WARNING:electron_api_native_image.cc(175)] Failed to load image from path '/usr/lib/electron22/discord.png'
Optional module ./ElectronTestRpc was not included.
fish: Job 1, 'ELECTRON_ENABLE_LOGGING=1 disco…' terminated by signal SIGSEGV (Address boundary error)

SunRed commented on 2023-06-02 20:00 (UTC)

The launch script now includes a rudimentary patch that allows for Krisp noise suppression support.

SunRed commented on 2023-04-19 19:58 (UTC)

If you run into problems (e.g. random segfaults) as I did when switching from the official client or the AUR versions using system Electron, make sure to remove all directories matching ~/.config/discord/*Cache and clean all Discord and Electron relevant directories in ~/.cache.

SunRed commented on 2023-04-03 13:54 (UTC)

@KokaKiwi yes, but weirdly enough the application segfaults in my case with electron 22 that I have not yet run through a debugger. It doesn't seem to happen with the normal discord(-electron) package. Using the additional chromium flags doesn't seem to make a difference so I let them be though ideally I would want to replace this hard configuration of flags with a config file, unrelated to the problem.

KokaKiwi commented on 2023-04-03 09:01 (UTC)

Shouldn't the package depends on electron22, as the electron version used by the upstream Discord package?