* [ISSUE] Discord should use system-wide electron
@ 2023-04-05 3:42 JuniorSuperTux
2023-04-05 4:44 ` 0x5c
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: JuniorSuperTux @ 2023-04-05 3:42 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 605 bytes --]
New issue by JuniorSuperTux on void-packages repository
https://github.com/void-linux/void-packages/issues/43280
Description:
There seems to be an arch package patching the bundled electron and using the system-wide one: https://aur.archlinux.org/packages/discord_arch_electron
It seems like as of right now Discord does not respect ``~/.config/electron-flags.conf``, which could possibly be resolved by using system installation of electron. Moreover, this can avoid duplicating electron binaries across different electron applications. Other electron applications should also use system-wide ones.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Discord should use system-wide electron
2023-04-05 3:42 [ISSUE] Discord should use system-wide electron JuniorSuperTux
@ 2023-04-05 4:44 ` 0x5c
2023-04-05 7:01 ` JuniorSuperTux
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: 0x5c @ 2023-04-05 4:44 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 764 bytes --]
New comment by 0x5c on void-packages repository
https://github.com/void-linux/void-packages/issues/43280#issuecomment-1496910438
Comment:
> It seems like as of right now Discord does not respect ~/.config/electron-flags.conf
Are you using the latest version of the discord package? It has electron 22 which would be able to read the file. Also maybe try renaming it to `electron22-flags.conf`, it appears that some builds only look for the file matching their version.
Replacing the electron they ship might not be viable, since discord maintains a [set of patches](https://github.com/electron/electron/compare/22-x-y...discord:electron:22-x-y) on top of plain electron.
Those patches also don't seem to contain anything that would disable the conf file.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Discord should use system-wide electron
2023-04-05 3:42 [ISSUE] Discord should use system-wide electron JuniorSuperTux
2023-04-05 4:44 ` 0x5c
@ 2023-04-05 7:01 ` JuniorSuperTux
2023-04-05 8:22 ` classabbyamp
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: JuniorSuperTux @ 2023-04-05 7:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 593 bytes --]
New comment by JuniorSuperTux on void-packages repository
https://github.com/void-linux/void-packages/issues/43280#issuecomment-1497013226
Comment:
Yes, I'm currently using the latest version of the Discord package. Creating ``electron22-flags.conf`` does not seem to make a difference from my current testings. It seems like that opening Discord spawns a XWayland process, which from my understanding is an emulation of Xorg. Killing the process kills the Discord instance. The Discord process does not seem to have the arguments either. Or could it be possible that it's normal behavior?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Discord should use system-wide electron
2023-04-05 3:42 [ISSUE] Discord should use system-wide electron JuniorSuperTux
2023-04-05 4:44 ` 0x5c
2023-04-05 7:01 ` JuniorSuperTux
@ 2023-04-05 8:22 ` classabbyamp
2023-04-05 12:20 ` JuniorSuperTux
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: classabbyamp @ 2023-04-05 8:22 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 228 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/issues/43280#issuecomment-1497107162
Comment:
xwayland is not an emulation of xorg, it's an x server that runs within wayland
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Discord should use system-wide electron
2023-04-05 3:42 [ISSUE] Discord should use system-wide electron JuniorSuperTux
` (2 preceding siblings ...)
2023-04-05 8:22 ` classabbyamp
@ 2023-04-05 12:20 ` JuniorSuperTux
2023-04-05 12:21 ` JuniorSuperTux
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: JuniorSuperTux @ 2023-04-05 12:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 340 bytes --]
New comment by JuniorSuperTux on void-packages repository
https://github.com/void-linux/void-packages/issues/43280#issuecomment-1497395818
Comment:
> xwayland is not an emulation of xorg, it's an x server that runs within wayland
Does that imply it's totally normal? But other apps running under native wayland does not get terminated
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Discord should use system-wide electron
2023-04-05 3:42 [ISSUE] Discord should use system-wide electron JuniorSuperTux
` (3 preceding siblings ...)
2023-04-05 12:20 ` JuniorSuperTux
@ 2023-04-05 12:21 ` JuniorSuperTux
2023-04-06 3:55 ` 0x5c
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: JuniorSuperTux @ 2023-04-05 12:21 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 375 bytes --]
New comment by JuniorSuperTux on void-packages repository
https://github.com/void-linux/void-packages/issues/43280#issuecomment-1497395818
Comment:
> xwayland is not an emulation of xorg, it's an x server that runs within wayland
Does that imply it's totally normal? But other apps running under native wayland does not get terminated and does not depend on the process
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Discord should use system-wide electron
2023-04-05 3:42 [ISSUE] Discord should use system-wide electron JuniorSuperTux
` (4 preceding siblings ...)
2023-04-05 12:21 ` JuniorSuperTux
@ 2023-04-06 3:55 ` 0x5c
2023-04-06 11:54 ` JuniorSuperTux
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: 0x5c @ 2023-04-06 3:55 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 255 bytes --]
New comment by 0x5c on void-packages repository
https://github.com/void-linux/void-packages/issues/43280#issuecomment-1498455272
Comment:
Reports online about discord updating to electron22 suggest that it should work with native wayland out of the box
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Discord should use system-wide electron
2023-04-05 3:42 [ISSUE] Discord should use system-wide electron JuniorSuperTux
` (5 preceding siblings ...)
2023-04-06 3:55 ` 0x5c
@ 2023-04-06 11:54 ` JuniorSuperTux
2023-04-09 14:12 ` JuniorSuperTux
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: JuniorSuperTux @ 2023-04-06 11:54 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 196 bytes --]
New comment by JuniorSuperTux on void-packages repository
https://github.com/void-linux/void-packages/issues/43280#issuecomment-1498945185
Comment:
Could it possibly be more of a Discord issue?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Discord should use system-wide electron
2023-04-05 3:42 [ISSUE] Discord should use system-wide electron JuniorSuperTux
` (6 preceding siblings ...)
2023-04-06 11:54 ` JuniorSuperTux
@ 2023-04-09 14:12 ` JuniorSuperTux
2023-04-10 14:20 ` JuniorSuperTux
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: JuniorSuperTux @ 2023-04-09 14:12 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2366 bytes --]
New comment by JuniorSuperTux on void-packages repository
https://github.com/void-linux/void-packages/issues/43280#issuecomment-1501138593
Comment:
I have some updates. I tried disabling XWayland in sway and then launching Discord with the essential arguments, and this is the output I got:
```
> Discord --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WaylandWindowDecorations --gtk-version=4
Discord 0.0.26
[3002:0409/220650.597200:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”
[3002:0409/220650.597267:ERROR:select_file_dialog_linux_portal.cc(274)] Failed to read portal version property
Starting app.
Starting updater.
2023-04-09T14:06:51.496Z [Modules] Modules initializing
2023-04-09T14:06:51.586Z [Modules] Distribution: remote
2023-04-09T14:06:51.587Z [Modules] Host updates: enabled
2023-04-09T14:06:51.587Z [Modules] Module updates: enabled
2023-04-09T14:06:51.608Z [Modules] Module install path: /home/supertux/.config/discord/0.0.26/modules
2023-04-09T14:06:51.609Z [Modules] Module installed file path: /home/supertux/.config/discord/0.0.26/modules/installed.json
2023-04-09T14:06:51.610Z [Modules] Module download path: /home/supertux/.config/discord/0.0.26/modules/pending
[3077:0409/220652.119162:ERROR:gpu_init.cc(523)] Passthrough is not supported, GL is egl, ANGLE is
2023-04-09T14:06:57.874Z [Modules] No updates to install
2023-04-09T14:06:57.876Z [Modules] Checking for host updates.
2023-04-09T14:06:58.533Z [Modules] Host is up to date.
2023-04-09T14:06:58.534Z [Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
2023-04-09T14:06:58.636Z [Modules] No module updates available.
Optional module ./ElectronTestRpc was not included.
[3002:0409/220659.218228:ERROR:browser_main_loop.cc(271)] Gtk: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
[WebContents] crashed (reason: crashed, exitCode: 11)... reloading
Optional module ./ElectronTestRpc was not included.
[WebContents] double crashed (reason: crashed, exitCode: 11)... RIP =(
```
The updater opens, but the main window crashes alongside with the updater after a while.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Discord should use system-wide electron
2023-04-05 3:42 [ISSUE] Discord should use system-wide electron JuniorSuperTux
` (7 preceding siblings ...)
2023-04-09 14:12 ` JuniorSuperTux
@ 2023-04-10 14:20 ` JuniorSuperTux
2023-04-10 14:24 ` JuniorSuperTux
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: JuniorSuperTux @ 2023-04-10 14:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 196 bytes --]
New comment by JuniorSuperTux on void-packages repository
https://github.com/void-linux/void-packages/issues/43280#issuecomment-1498945185
Comment:
Could it possibly be more of a Discord issue?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Discord should use system-wide electron
2023-04-05 3:42 [ISSUE] Discord should use system-wide electron JuniorSuperTux
` (8 preceding siblings ...)
2023-04-10 14:20 ` JuniorSuperTux
@ 2023-04-10 14:24 ` JuniorSuperTux
2023-04-10 15:40 ` Discord does not respect electron-flags.conf paper42
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: JuniorSuperTux @ 2023-04-10 14:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 514 bytes --]
New comment by JuniorSuperTux on void-packages repository
https://github.com/void-linux/void-packages/issues/43280#issuecomment-1501881874
Comment:
Forgot to mention that Discord wouldn't even launch without specifying those options. I also tried launching vscode today (electron 19 system-wide), and it seems like that it also doesn't respect ``electron19-flags.conf`` which is linked to ``electron-flags.conf``. In spite of that, unlike Discord, vscode launches normally with those options explicitly passed.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Discord does not respect electron-flags.conf
2023-04-05 3:42 [ISSUE] Discord should use system-wide electron JuniorSuperTux
` (9 preceding siblings ...)
2023-04-10 14:24 ` JuniorSuperTux
@ 2023-04-10 15:40 ` paper42
2023-04-11 5:31 ` classabbyamp
2023-04-11 5:31 ` [ISSUE] [CLOSED] " classabbyamp
12 siblings, 0 replies; 14+ messages in thread
From: paper42 @ 2023-04-10 15:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 285 bytes --]
New comment by paper42 on void-packages repository
https://github.com/void-linux/void-packages/issues/43280#issuecomment-1501969019
Comment:
because we don't build discord from source (they don't provide source) and only repackage a pre-built archive, we can't do anything with that
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Discord does not respect electron-flags.conf
2023-04-05 3:42 [ISSUE] Discord should use system-wide electron JuniorSuperTux
` (10 preceding siblings ...)
2023-04-10 15:40 ` Discord does not respect electron-flags.conf paper42
@ 2023-04-11 5:31 ` classabbyamp
2023-04-11 5:31 ` [ISSUE] [CLOSED] " classabbyamp
12 siblings, 0 replies; 14+ messages in thread
From: classabbyamp @ 2023-04-11 5:31 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 531 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/issues/43280#issuecomment-1502709736
Comment:
I think this is out of scope for void:
- to use system electron, we'd have to add discord's patches (not going to happen for the regular `electronN` package)
![image](https://user-images.githubusercontent.com/5366828/231064844-9d51b279-d57f-40ca-8494-7321a0c8eb7d.png)
- it's otherwise proprietary, as paper mentioned, and thus we can't really solve a bug with discord's electron
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ISSUE] [CLOSED] Discord does not respect electron-flags.conf
2023-04-05 3:42 [ISSUE] Discord should use system-wide electron JuniorSuperTux
` (11 preceding siblings ...)
2023-04-11 5:31 ` classabbyamp
@ 2023-04-11 5:31 ` classabbyamp
12 siblings, 0 replies; 14+ messages in thread
From: classabbyamp @ 2023-04-11 5:31 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 608 bytes --]
Closed issue by JuniorSuperTux on void-packages repository
https://github.com/void-linux/void-packages/issues/43280
Description:
There seems to be an arch package patching the bundled electron and using the system-wide one: https://aur.archlinux.org/packages/discord_arch_electron
It seems like as of right now Discord does not respect ``~/.config/electron-flags.conf``, which could possibly be resolved by using system installation of electron. Moreover, this can avoid duplicating electron binaries across different electron applications. Other electron applications should also use system-wide ones.
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2023-04-11 5:31 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-05 3:42 [ISSUE] Discord should use system-wide electron JuniorSuperTux
2023-04-05 4:44 ` 0x5c
2023-04-05 7:01 ` JuniorSuperTux
2023-04-05 8:22 ` classabbyamp
2023-04-05 12:20 ` JuniorSuperTux
2023-04-05 12:21 ` JuniorSuperTux
2023-04-06 3:55 ` 0x5c
2023-04-06 11:54 ` JuniorSuperTux
2023-04-09 14:12 ` JuniorSuperTux
2023-04-10 14:20 ` JuniorSuperTux
2023-04-10 14:24 ` JuniorSuperTux
2023-04-10 15:40 ` Discord does not respect electron-flags.conf paper42
2023-04-11 5:31 ` classabbyamp
2023-04-11 5:31 ` [ISSUE] [CLOSED] " classabbyamp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).