@SunRed thanks for the quick update. BTW you can remove curl from the makedepends array as it part of base or base-devel.
Search Criteria
Package Details: discord-electron-openasar 0.0.95+834-1
Package Actions
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: | 12 |
Popularity: | 0.84 |
First Submitted: | 2023-04-03 07:00 (UTC) |
Last Updated: | 2025-05-19 19:12 (UTC) |
Dependencies (12)
- electron36 (electron36-binAUR)
- libxss
- unzip (unzip-natspecAUR, unzip-zstdAUR, unzip-bsdunzip-symlinkAUR)
- asar (make)
- curl (curl-gitAUR, curl-c-aresAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- nodejs (nodejs-gitAUR, python-nodejs-wheelAUR, nodejs-lts-hydrogenAUR, nodejs-lts-iron, nodejs-lts-jod) (make)
- libappindicator-gtk3 (optional) – Systray indicator support
- libpulse (pulseaudio-dummyAUR, libpulse-gitAUR) (optional) – Pulseaudio support
- python-capstone (optional) – Required for Krisp patcher
- python-pyelftools (python-pyelftools-gitAUR) (optional) – Required for Krisp patcher
- xdg-utils (busking-gitAUR, xdg-utils-slockAUR, mimiAUR, mimi-gitAUR, xdg-utils-handlrAUR, openerAUR, xdg-utils-mimeoAUR, mimejs-gitAUR) (optional) – Open files
Required by (28)
- beautiful-discord-git (requires discord)
- cia-accesa (requires discord)
- clonehero-ptb (requires discord) (optional)
- devbook-bin (requires discord)
- discordrpc (requires discord) (optional)
- discordupdater (requires discord)
- equicord-hook (requires discord)
- horizonxi-launcher-bin (requires discord) (optional)
- jfcord-appimage (requires discord) (optional)
- mbcord-appimage (requires discord) (optional)
- moonlight-canary-bin (requires discord) (optional)
- moonlight-ptb-bin (requires discord) (optional)
- moonlight-stable-bin (requires discord) (optional)
- open-hexagon-git (requires discord) (optional)
- openasar-bin (requires discord) (optional)
- openasar-git (requires discord) (optional)
- openasar-install (requires discord)
- overlayed (requires discord) (optional)
- overlayed-bin (requires discord) (optional)
- overlayed-git (requires discord) (optional)
- plasticity-bin (requires discord) (optional)
- plasticity-bin-unstable (requires discord) (optional)
- premid (requires discord) (optional)
- premid-git (requires discord) (optional)
- premid-nightly (requires discord) (optional)
- remoteit-desktop-bin (requires discord)
- supertux-git (requires discord) (optional)
- xbox-xcloud (requires discord)
Sources (4)
brody commented on 2023-10-31 12:15 (UTC)
SunRed commented on 2023-10-31 12:01 (UTC)
@brody Apparently unzip
was installed by another package that I didn't see first when trying it with a KDE installation for running it with an x server/compositor in the vm. I see it's used for installation and updates as can also be seen on github. If it's not installed a dialog pops up. The official Discord asar seems to use an embedded library for extracting the archive.
An update is coming up shortly including the dependency.
Cheers.
brody commented on 2023-10-31 10:55 (UTC)
@SunRed Ok, my comment was not exact. The installation works but the first start does not. It was canceled during the starting process with a message that unzip was not found.
I'm building the AUR packages fundamentally in a clean chroot environment as described in the Archwiki. And yes, base-devel is installed as described there. There is not an issue to build the package and not to install it. I assume that the openasar part is the reason why there is cancelling the start process. Kind regards
SunRed commented on 2023-10-31 10:13 (UTC)
@brody Before building any package from the AUR, make sure you have the base-devel
package group/meta package installed. I've built, installed and ran it just for you in a bare virtual machine with just the minimum packages installed by archinstall
and there was no dependency error. I usually test all my packages in a clean chroot and not in a full virtual machine but that doesn't seem to be the issue.
brody commented on 2023-10-31 09:00 (UTC)
On a fresh archlinux system the package is not installable. There is a missing dependency of unzip.
SunRed commented on 2023-10-17 16:45 (UTC)
@StarterX4 Try cleaning the cache as mentioned in the pinned comment, or the entire ~/.config/discord
directory (you'll lose your session) first, as well as try to build the package in a chroot if something polluted the build environment.
StarterX4 commented on 2023-10-17 14:31 (UTC) (edited on 2023-10-17 14:32 (UTC) by StarterX4)
Did I miss something during package build?
[starterx4@doadgrz ~]$ discord
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
[OpenAsar > Init] OpenAsar nightly-8522065
[OpenAsar > Settings] /home/starterx4/.config/discord/settings.json {
IS_MAXIMIZED: false,
IS_MINIMIZED: false,
WINDOW_BOUNDS: { x: 0, y: 0, width: 1600, height: 942 },
OPEN_ON_STARTUP: false,
BACKGROUND_COLOR: '#202225',
openasar: {
setup: true,
cmdPreset: 'balanced',
quickstart: true,
noTrack: false
},
trayBalloonShown: true
}
[OpenAsar > BuildInfo] { releaseChannel: 'stable', version: '0.0.32' }
[OpenAsar > Modules] Checking
[11607:1017/162905.788482:ERROR:gpu_process_host.cc(943)] GPU process exited unexpectedly: exit_code=5
[11607:1017/162905.911975:ERROR:gpu_process_host.cc(943)] GPU process exited unexpectedly: exit_code=5
Error: Cannot find module 'discord_desktop_core'
Require stack:
- /usr/lib/discord/app.asar/bootstrap.js
- /usr/lib/discord/app.asar/index.js
- /usr/lib/electron24/resources/default_app.asar/main.js
-
at Module._resolveFilename (node:internal/modules/cjs/loader:1054:15)
at n._resolveFilename (node:electron/js2c/browser_init:2:110036)
at Module._load (node:internal/modules/cjs/loader:900:27)
at f._load (node:electron/js2c/asar_bundle:2:13377)
at Module.require (node:internal/modules/cjs/loader:1120:19)
at require (node:internal/modules/cjs/helpers:103:18)
at startCore (/usr/lib/discord/app.asar/bootstrap.js:1:1517)
at EventEmitter.<anonymous> (/usr/lib/discord/app.asar/bootstrap.js:1:2630)
at Object.onceWrapper (node:events:627:28)
at EventEmitter.emit (node:events:513:28) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/lib/discord/app.asar/bootstrap.js',
'/usr/lib/discord/app.asar/index.js',
'/usr/lib/electron24/resources/default_app.asar/main.js',
undefined
]
} uncaughtException
[OpenAsar > Modules] Update: discord_desktop_core 0 -> 1
[OpenAsar > Modules] Update: discord_utils 0 -> 1
[OpenAsar > Modules] Update: discord_voice 0 -> 1
[11607:1017/162906.031240:ERROR:gpu_process_host.cc(943)] GPU process exited unexpectedly: exit_code=5
SunRed commented on 2023-09-02 16:36 (UTC)
As I didn't announce it here when I updated the package: As of 0.0.29+812-2
Electron 24 is now used, segfaults due to arch repo's electron22
version shouldn't occur any longer. electron25
with this package resulted in unstable behavior again.
As @Sukid mentions, in case of problems, try deleting ~/.config/discord
first or at the very least ~/.config/discord/*Cache
if you don't want to lose your session.
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)
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.