A patch for higher versions of Electron was discussed in the comments for discord_arch_electron. I've tested the same method for this version (example can be found at https://github.com/Foxinatel/discord-canary-electron-bin), and it seems to work perfectly for all versions up to Electron 19.
Search Criteria
Package Details: discord-canary-electron-bin 0.0.541-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/discord-canary-electron-bin.git (read-only, click to copy) |
---|---|
Package Base: | discord-canary-electron-bin |
Description: | Discord Canary (popular voice + video app) using the system provided electron for increased security and performance |
Upstream URL: | https://canary.discordapp.com |
Keywords: | discord discord-canary electron |
Licenses: | custom |
Conflicts: | discord-canary |
Provides: | discord-canary |
Submitter: | Kodehawa |
Maintainer: | Kodehawa (FivePB, Auxim) |
Last Packager: | FivePB |
Votes: | 34 |
Popularity: | 0.004407 |
First Submitted: | 2020-10-22 03:49 (UTC) |
Last Updated: | 2024-12-12 08:11 (UTC) |
Dependencies (17)
- alsa-lib
- electron29 (electron29-binAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR, glibc-eac-rocoAUR)
- gtk3 (gtk3-no_deadkeys_underlineAUR, gtk3-classicAUR, gtk3-classic-xfceAUR, gtk3-patched-filechooser-icon-viewAUR)
- libcups (libcups-gitAUR, cups-gitAUR, libcups-gssapiAUR)
- libnotify (libnotify-gitAUR)
- libxss
- nspr (nspr-hgAUR)
- nss (nss-hgAUR)
- unzip (unzip-natspecAUR, unzip-zstdAUR)
- xdg-utils (busking-gitAUR, xdg-utils-slockAUR, mimiAUR, mimi-gitAUR, xdg-utils-handlrAUR, openerAUR, xdg-utils-mimeoAUR, mimejs-gitAUR)
- asar (make)
- libpulse (pulseaudio-dummyAUR, libpulse-gitAUR) (optional) – Pulseaudio support
- noto-fonts-cjk (noto-fonts-cjk-vfAUR, noto-fonts-cjk-hk-vfAUR, noto-fonts-cjk-jp-vfAUR, noto-fonts-cjk-kr-vfAUR, noto-fonts-cjk-sc-vfAUR, noto-fonts-cjk-tc-vfAUR, noto-fonts-hk-vfAUR, noto-fonts-jp-vfAUR, noto-fonts-kr-vfAUR, noto-fonts-sc-vfAUR, noto-fonts-tc-vfAUR, otf-noto-sans-cjkAUR, otf-noto-sans-cjk-vfAUR, otf-noto-sans-mono-cjk-vfAUR, otf-noto-serif-cjk-vfAUR, otf-noto-serif-cjkAUR, noto-fonts-cjk-chwsAUR) (optional) – Font for special characters such as /shrug face.
- noto-fonts-emoji (noto-fonts-emoji-gitAUR, noto-fonts-emoji-blobAUR, noto-fonts-emoji-flag-gitAUR) (optional) – Google font for emoji support.
- ttf-symbolaAUR (ttf-symbola-freeAUR) (optional) – Font for emoji support.
- xdg-utils (busking-gitAUR, xdg-utils-slockAUR, mimiAUR, mimi-gitAUR, xdg-utils-handlrAUR, openerAUR, xdg-utils-mimeoAUR, mimejs-gitAUR) (optional) – Open files
Required by (9)
- discord-canary-update-skip-git (requires discord-canary)
- discord-canary-wayland-hook (requires discord-canary)
- jfcord-appimage (requires discord-canary) (optional)
- mbcord-appimage (requires discord-canary) (optional)
- openasar-bin (requires discord-canary) (optional)
- openasar-git (requires discord-canary) (optional)
- powercord-electron-git
- powercord-git (requires discord-canary)
- replugged-electron-git
Sources (4)
Foxinatel commented on 2022-08-05 00:09 (UTC)
theriddick commented on 2022-04-16 01:50 (UTC) (edited on 2022-07-14 23:54 (UTC) by theriddick)
Canary package version should now be .135 (its available). Remember to adjust the hash check or set it to SKIP until AUR is updated fully. UPDATE: now .136 is needed, same deal.
theriddick commented on 2022-03-30 01:12 (UTC)
Still unable to use H264 in Discord without watching peoples streams causing internal app crash. (appears encoding part works)
I can watch peoples streams if H264 is disabled, but I suspect this disables the encode component also.
I use these conf in electron15 with powercord launcher. Basically to improve encoding performance. Originally it worked fine, but something must be broken. (not only one with this issue)
--enable-accelerated-mjpeg-decode --enable-accelerated-video --ignore-gpu-blacklist --enable-native-gpu-memory-buffers --enable-gpu-rasterization
theriddick commented on 2022-03-28 23:33 (UTC)
Keep getting this message that pops up every so often asking to Update Now. But pressing that does nothing. Seems client thinks it needs to update when it appears to work just fine.
If I reboot my machine I noticed it does 1of7 update process on first launch.
Odd
theriddick commented on 2022-03-17 15:40 (UTC) (edited on 2022-03-17 21:57 (UTC) by theriddick)
Anyone have a issue when clicking WATCH STREAM of other people and have the discord internally restart?
I can stream myself fine but watching them causes this reset behavior and I don't know why.
UPDATE: Seems other people have this issue. You can encode and stream videos but can't watch them with open264 enabled, so you must disable that in order to watch other peoples streams. VERY WEIRD ISSUE!
sl1pkn07 commented on 2022-03-11 16:51 (UTC)
tested with multitranmission. zero problems with electron15 with ffmpeg4 support and without disable openh264 hardware decoding (disable hardware decoding is the workground for transmission crashes)
sl1pkn07 commented on 2022-03-06 09:48 (UTC)
seems electron 15 have better approach than me for the build electron with ffmpeg4. sic
sl1pkn07 commented on 2022-03-05 19:33 (UTC) (edited on 2022-03-05 22:15 (UTC) by sl1pkn07)
tested and needs build electron (tested v16) with ffmpeg 4.x
take ages to build, but works with discord canary core
change ffmpeg
in depends to ffmpeg4.4
add to makedepends()
'patchutils'
add to sources()
'ffmpeg4.4_1.patch.base64::https://chromium-review.googlesource.com/changes/chromium%2Fsrc~3011889/revisions/7/patch?download'
'ffmpeg4.4_2.patch.base64::https://chromium-review.googlesource.com/changes/chromium%2Fsrc~2965899/revisions/3/patch?download'
and SKIP to sums
and add
# Use ffmepg4.4
# Needs revert https://chromium-review.googlesource.com/c/chromium/src/+/3011889
# and https://chromium-review.googlesource.com/c/chromium/src/+/2965899
# the patch fails iself due collisions with the file DEPS, so strip out with filterdiff
export PKG_CONFIG_PATH=/usr/lib/ffmpeg4.4/pkgconfig
base64 -d ../ffmpeg4.4_1.patch.base64 | filterdiff -p1 -x 'DEPS' > ../ffmpeg4.4_1.patch.base64_filtered
patch -RNp1 -i ../ffmpeg4.4_1.patch.base64_filtered
base64 -d ../ffmpeg4.4_2.patch.base64 | filterdiff -p1 -x 'DEPS' > ../ffmpeg4.4_2.patch.base64_filtered
patch -RNp1 -i ../ffmpeg4.4_2.patch.base64_filtered
to prepare()
build and install
greetings
EDIT: seems a bit inestable. trying with electron 15 :/
Pinned Comments
Kodehawa commented on 2020-10-22 04:06 (UTC) (edited on 2024-01-04 20:06 (UTC) by Kodehawa)
A shoutout to https://aur.archlinux.org/packages/discord_arch_electron/ (use that one if you want stable instead of canary!) :p
This is just a PKGBUILD based on the original discord-canary PKGBUILD and the discord_arch_electron PKGBUILD to use with Canary instead.
Discord on the latest version uses Electron 22 by itself. Might be worth using the official version if that is what you're after.
!! As Electron 28 joined the official repos, I've pinned this to electron26 instead, as using Electron 28 results on a crash at startup. If it ever works with Electron 28, please let me know.