spacingbat3 / webcord Goto Github PK
View Code? Open in Web Editor NEWA Discord and SpaceBar :electron:-based client implemented without Discord API.
License: MIT License
A Discord and SpaceBar :electron:-based client implemented without Discord API.
License: MIT License
To reproduce:
Quit Discord
Is your feature request related to a problem? Please describe.
No problems with the functionality at all.
Describe the solution you'd like
It would be nice if there is a toggle in the settings to disable the check for a new version or to disable/suppress the corresponding notification.
Describe alternatives you've considered
None, since the version check is not configurable.
I cant log in beacuse captcha fails to load up. So this bug makes this app useless.
here is a video to show it:
https://user-images.githubusercontent.com/81039620/121858995-7d883900-ccf7-11eb-99d3-eeefadbe36e1.mp4
Is your feature request related to a problem? Please describe.
I'd really like to be able to use Discord on my Pinephone, but the only OS that works well for me is PostmarketOS with SXMO.
Describe the solution you'd like
Please make an APK package for Alpine aarch64, it would allow PostmarketOS and Alpine users to install on aarch64 devices.
Describe alternatives you've considered
I've considered packaging it myself, but I'm having trouble understanding how, both how to package an Electron app, and how to crosscompile for PostmarketOS.
To reproduce:
Really enjoying your effort. There is another app that they have attempted an electron app that could use your experience with ARM. https://github.com/Automattic/simplenote-electron v2 broke ARM build. Worked in v1. Automattic/simplenote-electron#2452 They state not a lot of ARM experience or hardware to test. Could you look at this app? Thanks
PS using your app on Ubuntu Mate 20.10
Things I have found not working:
Desktop Notifications (including sounds)
Right-click menu on messages
Media playback of embedded youtube videos, discord videos, embedded discord music
Embedded spotify players are not loading
Steps to reproduce the behavior:
Notification sounds can be tested in Settings -> Notifications -> Click the little speaker symbol when hovering over SOUNDS>Messages
Right click message context menu can be tested by right clicking any message in a chat
Youtube videos can be tested by pasting a youtube link in the chat and trying to play them back; Discord videos can be tested by uploading a video into a chat and trying to play it; Music can be tested by uploading it into the chat and trying to play it back;
Spotify player embedding can be tested by pasting a spotify link into the chat
Desktop notifications have to trigger a sound, if active and also give a windows desktop notification over the "Windows Desktop Notification API"
Messages have to open a right click menu when clicked with right mouse button, allowing rich&quick interaction as with the official desktop client
Media should play when clicked and embedded players have to load
I have tried both enabling and disabling 3rd party in File>Third Party>Content Security Policy and restarting the client with the same result.
master
branch.* Required
Manjaro Linux RPi 4
aarch64
v15.1.2
v2.0.0-beta3
The Spotify embeds are not loading, erroring out in the console.
(...and many more than seem to be related)
Steps to reproduce the behavior:
The Spotify embeds should be displayed fine.
Seems to be a CSP-related issue
Disable in-app Content Security Policy to use the one offered by the Discord (however it doesn't block Sentry nor Google Analytics, also loads external fonts as WebCord blocks loading fonts from web in general).
Application not opening on clicking the icon in the taskbar
webcord wasn't starting, so I tried from terminal and this is what I got:
[itai@ManjaroPi4 linux]$ webcord
Error launching app
Unable to find Electron app at /usr/lib/webcord.asar
Cannot find module '/usr/lib/webcord.asar/src/js/main.js'. Please verify that the package.json has a valid "main" entry
[itai@ManjaroPi4 linux]$
I built it with the PKGBUILD.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Discord works ok on rpi 4b 8GB but I am unable to share screen.
Could somebody help me with this issue? Since I just started using discord, it is probably something on the app settings I have to change...
To reproduce:
I'm sure this is an npm 101 kind of problem.
I can't seem to compile and always run into uknown compiler option errors
npm i && npm start
up to date, audited 778 packages in 6s
93 packages are looking for funding
run `npm fund` for details
19 low severity vulnerabilities
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
> [email protected] start
> tsc && electron-forge start
error TS5023: Unknown compiler option 'allowJs'.
error TS5023: Unknown compiler option 'baseUrl'.
error TS5023: Unknown compiler option 'moduleResolution'.
error TS5023: Unknown compiler option 'pretty'.
error TS5023: Unknown compiler option 'paths'.
All the context menus are the default OS context menus, instead of the Copy ID, Invite to Server, Copy Image, etc of the normal client
I'm trying to run 2.0-rc1 on my retro Pi (which is a raspbian under the hood, I think). Version 1.5 segfaults when I try to start itβ¦
Starting 2.0-rc1 gives me this error:
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module 'electron-json-config'
Require stack:
- /home/tinloaf/discord/electron-discord-webapp-0.2.0-rc1-armv7l/resources/app.asar/js/main.js
-
at Module._resolveFilename (internal/modules/cjs/loader.js:961:15)
at Function.o._resolveFilename (electron/js2c/browser_init.js:257:921)
at Module._load (internal/modules/cjs/loader.js:844:27)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (internal/modules/cjs/loader.js:1023:19)
at new require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (/home/tinloaf/discord/electron-discord-webapp-0.2.0-rc1-armv7l/resources/app.asar/js/main.js:6:19)
at Module._compile (internal/modules/cjs/loader.js:1145:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1166:10)
at Module.load (internal/modules/cjs/loader.js:981:32)
Segmentation fault
I'm really not a JavaScript / Node.js / Electron guy, but that looks like something that should be packaged is not packaged?
I tried build from AUR on manjaro
sources/code/main/nativeMenus.ts:115:22 - error TS2749: 'nativeImage' refers to a value, but is being used as a type here. Did you mean 'typeof nativeImage'?
115 let image: string | nativeImage;
Describe the bug
The hCaptcha that you have to complete after filling in your login credentials is not there
Desktop (please complete the following information):
Additional context
I installed it via Pi-Apps
webcord
A JavaScript error occurred in the main process
Uncaught Exception:
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Object.read (/usr/lib/webcord/resources/app.asar/node_modules/electron-json-config/src/utils.ts:15:17)
at Object.factory (/usr/lib/webcord/resources/app.asar/node_modules/electron-json-config/src/factory.ts:21:34)
at Object.<anonymous> (/usr/lib/webcord/resources/app.asar/src/ts/object.ts:20:27)
at Module._compile (internal/modules/cjs/loader.js:1078:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
at Module.load (internal/modules/cjs/loader.js:935:32)
at Module._load (internal/modules/cjs/loader.js:776:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12684)
at Module.require (internal/modules/cjs/loader.js:959:19)
Describe the bug
The application fails to launch and shows this error.
Libraries were updated on ubuntu bionic from version 15.12.0 to version 15.14.0 where the crash occurs
I have two installs with the only package differences being the listed packages below
the install with the older packages works fine, the install with the newer package versions crashes webcord
apt/bionic-updates 1.6.13 arm64 [upgradable from: 1.6.12ubuntu0.2]
apt-transport-https/bionic-updates 1.6.13 all [upgradable from: 1.6.12ubuntu0.2]
apt-utils/bionic-updates 1.6.13 arm64 [upgradable from: 1.6.12ubuntu0.2]
code/stable 1.55.2-1618306574 arm64 [upgradable from: 1.54.3-1615805708]
gir1.2-javascriptcoregtk-4.0/bionic-updates,bionic-security 2.30.6-0ubuntu0.18.04.1 arm64 [upgradable from: 2.30.5-0ubuntu0.18.04.1]
gir1.2-webkit2-4.0/bionic-updates,bionic-security 2.30.6-0ubuntu0.18.04.1 arm64 [upgradable from: 2.30.5-0ubuntu0.18.04.1]
gnome-shell/bionic-updates 3.28.4-0ubuntu18.04.7 arm64 [upgradable from: 3.28.4-0ubuntu18.04.3]
gnome-shell-common/bionic-updates 3.28.4-0ubuntu18.04.7 all [upgradable from: 3.28.4-0ubuntu18.04.3]
libapt-inst2.0/bionic-updates 1.6.13 arm64 [upgradable from: 1.6.12ubuntu0.2]
libapt-pkg5.0/bionic-updates 1.6.13 arm64 [upgradable from: 1.6.12ubuntu0.2]
libcurl3-gnutls/bionic-updates,bionic-security 7.58.0-2ubuntu3.13 arm64 [upgradable from: 7.58.0-2ubuntu3.12]
libhogweed4/bionic-updates,bionic-security 3.4-1ubuntu0.1 arm64 [upgradable from: 3.4-1]
libjavascriptcoregtk-4.0-18/bionic-updates,bionic-security 2.30.6-0ubuntu0.18.04.1 arm64 [upgradable from: 2.30.5-0ubuntu0.18.04.1]
libnettle6/bionic-updates,bionic-security 3.4-1ubuntu0.1 arm64 [upgradable from: 3.4-1]
libnss-myhostname/bionic-updates 237-3ubuntu10.46 arm64 [upgradable from: 237-3ubuntu10.45]
libnss-systemd/bionic-updates 237-3ubuntu10.46 arm64 [upgradable from: 237-3ubuntu10.45]
libopenexr22/bionic-updates,bionic-security 2.2.0-11.1ubuntu1.6 arm64 [upgradable from: 2.2.0-11.1ubuntu1.4]
libpam-systemd/bionic-updates 237-3ubuntu10.46 arm64 [upgradable from: 237-3ubuntu10.45]
libseccomp2/bionic-updates 2.5.1-1ubuntu1~18.04.1 arm64 [upgradable from: 2.4.3-1ubuntu3.18.04.3]
libsystemd-dev/bionic-updates 237-3ubuntu10.46 arm64 [upgradable from: 237-3ubuntu10.45]
libsystemd0/bionic-updates 237-3ubuntu10.46 arm64 [upgradable from: 237-3ubuntu10.45]
libudev-dev/bionic-updates 237-3ubuntu10.46 arm64 [upgradable from: 237-3ubuntu10.45]
libudev1/bionic-updates 237-3ubuntu10.46 arm64 [upgradable from: 237-3ubuntu10.45]
libwebkit2gtk-4.0-37/bionic-updates,bionic-security 2.30.6-0ubuntu0.18.04.1 arm64 [upgradable from: 2.30.5-0ubuntu0.18.04.1]
linux-firmware/bionic-updates 1.173.20 all [upgradable from: 1.173.19]
linux-libc-dev/bionic-updates,bionic-security 4.15.0-142.146 arm64 [upgradable from: 4.15.0-140.144]
moonlight-qt/bionic 3.1.1-1 arm64 [upgradable from: 3.1.0-1]
nodejs/unknown 15.14.0-1nodesource1 arm64 [upgradable from: 15.12.0-1nodesource1]
python3-lxml/bionic-updates,bionic-security 4.2.1-1ubuntu0.4 arm64 [upgradable from: 4.2.1-1ubuntu0.3]
switch-dock-handler/unknown 1.5-1 all [upgradable from: 1.3-0ubuntu1]
systemd/bionic-updates 237-3ubuntu10.46 arm64 [upgradable from: 237-3ubuntu10.45]
systemd-sysv/bionic-updates 237-3ubuntu10.46 arm64 [upgradable from: 237-3ubuntu10.45]
ubuntu-keyring/bionic-updates 2018.09.18.1~18.04.2 all [upgradable from: 2018.09.18.1~18.04.0]
udev/bionic-updates 237-3ubuntu10.46 arm64 [upgradable from: 237-3ubuntu10.45]
xserver-common/bionic-updates,bionic-security 2:1.19.6-1ubuntu4.9 all [upgradable from: 2:1.19.6-1ubuntu4.8]
xserver-xephyr/bionic-updates,bionic-security 2:1.19.6-1ubuntu4.9 arm64 [upgradable from: 2:1.19.6-1ubuntu4.8]
xserver-xorg-core/bionic-updates,bionic-security 2:1.19.6-1ubuntu4.9 arm64 [upgradable from: 2:1.19.6-1ubuntu4.8]
xserver-xorg-dev/bionic-updates,bionic-security 2:1.19.6-1ubuntu4.9 arm64 [upgradable from: 2:1.19.6-1ubuntu4.8]
xserver-xorg-legacy/bionic-updates,bionic-security 2:1.19.6-1ubuntu4.9 arm64 [upgradable from: 2:1.19.6-1ubuntu4.8]
xwayland/bionic-updates,bionic-security 2:1.19.6-1ubuntu4.9 arm64 [upgradable from: 2:1.19.6-1ubuntu4.8]
Desktop (please complete the following information):
Let me know if I can help or provide any more information
If user error let me know just trying RC earlier version works fine and I can go back.
Ubuntu Mate 20.10
ubuntu@ubuntu-desktop:~$ /usr/share/electron-discord-webapp-0.2.0-rc1-arm64/electron-discord-webapp
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module 'electron-json-config'
Require stack:
I have checked that there's no other issue describing the same or
similar problem that I currently have, regardless if it has been
closed or open.
I can confirm that this is not an issue with the Discord website,
but it is a problem specific to the WebCord itself.
I have tried running the build from the master
branch and it does
not have any fixes implemented according to my issue.
My issue describes one of the unstable and/or not fully implemented
features.
I have found a workaround to mitigate or temporarily fix this issue
(please write it in Additional context section).
πͺοΈ Windows
x64 (64-bit Intel/AMD)
15.3.1
2.1.0
Whenever i try to open up my mic it just says this
normal browser works just fine though
No response
Does it work as user accounts or only bot accounts
I just installed your pre-packaged verion of this electron-discord-webapp, and upon launching, it displays an error:
Discord works fine within the window, however I noticed the system tray icon is missing.
This issue was already fixed in master
as I can build successfully from it, but the PKGBUILD gets the broken version.
makepkg -si
fails
$ makepkg -si
==> Making package: webcord-git 1.4.2.r3.6774b6e-1 (Thu Jun 3 18:07:23 2021)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating webcord git repo...
Fetching origin
-> Found webcord.desktop
==> Validating source files with md5sums...
webcord ... Skipped
webcord.desktop ... Passed
==> Extracting sources...
-> Creating working copy of webcord git repo...
Reset branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
(1/6) Installing dependencies...
up to date, audited 98 packages in 17s
6 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
(2/6) Compiling TypeScript to Javascript...
src/ts/main.ts:220:13 - error TS2531: Object is possibly 'null'.
220 if (webContents.getURL().includes(appInfo.rootURL)) {
~~~~~~~~~~~
src/ts/main.ts:223:127 - error TS2531: Object is possibly 'null'.
223 console.warn(`[${l10nStrings.dialog.warning.toLocaleUpperCase()}] ${l10nStrings.dialog.permission.check.denied}`, webContents.getURL(), permission);
~~~~~~~~~~~
Found 2 errors.
Failed to compile TypeScript sources to JavaScript
linux
ManjaroWhen you watching stream from another user, app doesn't separate audio sources like in vanilla app, and manipulations with in-app stream audio slider doesn't make effect.
When you pick option "open stream in another window", app try redirect and open source in system browser on page https://discord.com/popout, but stream doesn't opens
Steps to reproduce the behavior:
As i understand, this electron app works something like Chrome webwiew. Not sure about workaround with sound sources separation, but in case with stream window, you can try create function-wrapper for button new child window https://www.electronjs.org/docs/latest/api/browser-window
cant grant permission to allow it to use my microphone, making it impossible to talk.
there may be a way to bypass this but im not sure.
Failed to build Webcord-git
Manjaro Arm 64
Preparing...
Checking webcord-git dependencies...
Resolving dependencies...
Checking inter-conflicts...
Cloning webcord-git build files...
Building webcord-git...
==> Making package: webcord-git 1.4.2.r7.9cf51d0-2 (Thu 08 Jul 2021 18:09:55)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning webcord git repo...
Cloning into bare repository '/var/tmp/pamac-build-corey/webcord-git/webcord'...
-> Found webcord.desktop
==> Validating source files with md5sums...
webcord ... Skipped
webcord.desktop ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Creating working copy of webcord git repo...
Cloning into 'webcord'...
done.
==> Starting pkgver()...
==> Updated version: webcord-git 1.5.0.r1.e914698-1
==> Starting build()...
(1/6) Installing dependencies...
npm WARN idealTree Removing devDependencies.@types/source-map-support in favor of dependencies.@types/source-map-support
npm WARN idealTree Removing devDependencies.electron in favor of dependencies.electron
added 98 packages, and audited 99 packages in 2m
6 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
npm notice
npm notice New minor version of npm available! 7.17.0 -> 7.19.1
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v7.19.1>
npm notice Run `npm install -g [email protected]` to update!
npm notice
(2/6) Clean-up workspace...
(3/6) Compiling TypeScript to Javascript...
src/ts/main.ts(49,45): error TS2345: Argument of type '{ recursive: boolean; }' is not assignable to parameter of type 'RmDirOptions'.
Object literal may only specify known properties, and 'recursive' does not exist in type 'RmDirOptions'.
Failed to compile TypeScript sources to JavaScript
Failed to build webcord-git
Is your feature request related to a problem? Please describe.
On the website and desktop app (not sure about this one), you can right-click an image to copy it, or its link address to the clipboard.
Describe the solution you'd like
An extra option to copy an image or its URL when right-clicking an image.
Describe alternatives you've considered
I mean I could click open original and then copy the link, but chromium takes a while to start if I have it closed just for me to copy an image or dank meme π.
Additional context
This is what shows right now when I right-click an image.
To reproduce:
Open original
.Is your feature request related to a problem? Please describe.
Coming from Windows (where this is a default feature in most places with a scroll bar), it frustrates me not having this feature on Linux. Autoscrolling helps a lot when scrolling up a long distance. Electron apps have an unusually slow scrolling speed too (which makes it even more frustrating), unlike Firefox.
Describe the solution you'd like
An option to enable autoscrolling (like in Firefox).
Describe alternatives you've considered
I do not really know of any other alternatives. I could just somehow make the scrolling faster, but I do not think that would be good as autoscrolling and it would effect all apps (including ones without the issue of slow scrolling speed, which would make the scroll wheel too fast).
Login error : After entering my credentials it asks for captcha but it flashes for few seconds and the a white window.
Steps to reproduce the behavior: (After entering E-mail ID and Password)
It should allow me to fill the captcha and use webcord
downloaded using Pi-Apps
same icon as in the screenshot in #18
[itai@ManjaroPi4 linux]$ makepkg -s
==> Making package: webcord-git v1.1.0_pre1.r67.cbfb1a7-1 (Fri 16 Apr 2021 05:37:48 PM IDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning webcord git repo...
Cloning into bare repository '/home/itai/Downloads/electron-discord-webapp/build/linux/webcord'...
Username for 'https://github.com': ^C
==> ERROR: Aborted by user! Exiting...
[itai@ManjaroPi4 linux]$
I fixed it by replacing
source=("${pkgname%-git}::git+https://github.com/${_author}/${_repo}.git"
with
source=("${pkgname%-git}::git+https://github.com/SpacingBat3/electron-discord-webapp.git"
but now I get this error:
-> Found webcord.desktop
==> ERROR: Integrity checks (md5) differ in size from the source array.
[itai@ManjaroPi4 linux]$
I'm guessing it should skip checking the md5sums because of this line: md5sums=('SKIP')
When looking at a channel with embedded media (discord hosted video) - playing the video does not work.
Steps to reproduce the behavior:
Before upgrading to 1.4.2 from 1.4.1, I deleted these folders:
\AppData\Roaming\WebCord
\AppData\Local\Temp
Describe the bug
the app doesn't start at all.
To Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
Additional context
when running from terminal, I get this error:
[itai@manjaro-pi4 Downloads]$ ./electron-discord-webapp-1.1.1-arm64.AppImage
fuse: device not found, try 'modprobe fuse' first
Cannot mount AppImage, please check your FUSE setup.
You might still be able to extract the contents of this AppImage
if you run it with the --appimage-extract option.
See https://github.com/AppImage/AppImageKit/wiki/FUSE
for more information
open dir error: No such file or directory
[itai@manjaro-pi4 Downloads]$
I tried using the --extract-and-run
option, and I get this error:
[itai@manjaro-pi4 Downloads]$ ./electron-discord-webapp-1.1.1-arm64.AppImage
fuse: device not found, try 'modprobe fuse' first
Cannot mount AppImage, please check your FUSE setup.
You might still be able to extract the contents of this AppImage
if you run it with the --appimage-extract option.
See https://github.com/AppImage/AppImageKit/wiki/FUSE
for more information
open dir error: No such file or directory
[itai@manjaro-pi4 Downloads]$
the sha256sum if it helps: f603ff34ed0309f5e75859c602a58bfc349058ef46041ecfa36ad209a6cbff58 electron-discord-webapp-1.1.1-arm64.AppImage
I know that this is essentially Discord Web, but is there a way to enable Game Activity?
master
branch.The app cannot launch
Steps to reproduce the behavior:
Expect app to launch, presented with an app cannot launch error
Problem related to macOS app signing
Run this command in terminal:
xattr -cr /Applications/WebCord.app
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.