@Thaodan: The resource folder was asked by irisnk in this comment.
Search Criteria
Package Details: discord_arch_electron 0.0.78-1
Package Actions
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.27 |
First Submitted: | 2020-05-19 23:51 (UTC) |
Last Updated: | 2024-12-17 20:22 (UTC) |
Dependencies (9)
- electron
- libxss
- asar (make)
- curl (curl-quiche-gitAUR, curl-http3-ngtcp2AUR, curl-gitAUR, curl-c-aresAUR) (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 (25)
- beautiful-discord-git (requires discord)
- cia-accesa (requires discord)
- clonehero-ptb (requires discord) (optional)
- devbook-bin (requires discord)
- discord-update-skip-git (requires discord)
- discordrpc (requires discord) (optional)
- discordupdater (requires discord)
- horizonxi-launcher-bin (requires discord) (optional)
- jfcord-appimage (requires discord) (optional)
- mbcord-appimage (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)
- sonic3air-bin (requires discord) (optional)
- xbox-xcloud (requires discord)
Sources (3)
Latest Comments
« First ‹ Previous 1 .. 3 4 5 6 7 8 9 10 11 12 13 .. 39 Next › Last »
Zoddo commented on 2023-10-09 19:43 (UTC)
Thaodan commented on 2023-10-08 21:17 (UTC)
Why keep the resources folder? Electron doesn't care for the folder name, /usr/share/discord is enough.
Discord is architecture-dependent (it dynamically downloads native modules compiled for x86_64 on the first run). The asar archive doesn't contain anything architecture-dependent by itself, so I will move it to /usr/share/discord/resources/ on the next package update,
The discord package e.g. the host part of the package is not architecture dependent. Without the precompiled Electron it still runs on architectures (minus the features that require native node modules).
Mewio commented on 2023-10-08 16:43 (UTC)
@zoddo No problem! I figured I would report on it since the last report was some time ago.
Zoddo commented on 2023-10-08 15:10 (UTC)
Discord is architecture-dependent (it dynamically downloads native modules compiled for x86_64 on the first run).
The asar archive doesn't contain anything architecture-dependent by itself, so I will move it to /usr/share/discord/resources/
on the next package update, but I believe the PKGBUILD should continue to use arch=('x86_64')
since the package will not run on other architectures.
@Mewio: Thanks for the report, I'll take a look at the pop-out issue.
aliu commented on 2023-10-08 14:47 (UTC)
Since the asar isn't architecture dependent shouldn't it be installed to /usr/share instead of /usr/lib?
Mewio commented on 2023-10-07 21:14 (UTC)
For the past two years, I have been unable to use this package simply because popping out streams does not work. I need that for work and obviously with friends. This has always happened on any fresh (or not fresh) install of Arch on multiple machines and devices. It has also been reported previously by other users. I simply created an account here to remind about it. When you pop out a stream, the audio will continue to play but the stream it self will only show that it is buffering. Streams work fine when not popped out but unfortunately then the streams are too small do to parts of discord not being collapsable. I can work around this by abusing KDE's fullscreen shortcut (if you use chromium/electron's built in fullscreen then use KDE's shortcut to fullscreen, it will run the fullscreened chromium in a window.)
Thaodan commented on 2023-10-06 22:53 (UTC)
I can think that extracting the asar could remove some duplicates when fdupes is used and allow deduplication to work better.
Why do you install discord to /usr/lib? It doesn't contain any architecture specific files.
Zoddo commented on 2023-10-06 18:32 (UTC)
@irisnk: Thanks for the report. I did better and moved these resource files to the resources
subdirectory.
On an unrelated note, I've also removed the --unpack-dir '**'
option to the asar pack
invocation to allow files to be packed in the archive. I'm not sure why this option was present (it was added in the first version that extracted the asar archive), but it's not required and prevents files from being compressed on disk.
irisnk commented on 2023-10-06 09:38 (UTC)
Could you please sudo ln -s /usr/lib/discord /usr/lib/discord/resources to make automated openasar installers (like openasar-bin and the vencord installer script) work again? Thanks in advance!
mjevange commented on 2023-09-25 21:39 (UTC) (edited on 2023-09-25 21:43 (UTC) by mjevange)
@goshawk22 @ivii @clems4ever
First
sudo pacman -S electron24
Open:
sudo nvim /usr/bin/discord-canary
Change:
exec electron /usr/lib/discord-canary/app.asar $@
To:
exec electron24 /usr/lib/discord-canary/app.asar $@
Save:
:wq + Enter
Launch with:
discord-canary --enable-features=UseOzonePlatform --ozone-platform=wayland
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):
Starting with 0.0.20-1 (2022-09-15):
$XDG_CONFIG_HOME/discord-flags.conf
: this works likeelectron-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.