You are not logged in.
Hi there! When launching Discord from the desktop entry a bunch of modals shown up displaying the following:
A Javascript error occurred in the main process
Uncaught exception:
Error: write EPIPE
<stacktrace>
I can click the "Ok" button a bunch of times, then Discord can open, working fine.
When launching Discord from the terminal no error is raisen.
I previously found another post with a similar issue, sadly I can't find it no more, the solution in this post was regarding a typo in the environment variable and a broken installation of Discord itself.
My envs are fine and so the Discord installation.
Last edited by nullndr (2024-07-05 07:24:33)
Offline
When launching Discord from the terminal no error is raisen.
But discord likely writes to the stdout, that's gonna be closed when running the desktop entry and that causes the epipe.
Running "discord 1>&- 2>&-" in the terminal causes the same dialogs to show up?
You could try to wrap discord in a script in /usr/local/bin that redirects "discord > /dev/null 2>&1" so discord will hopefully not complain when the shells stdout gets closed.
Offline
Running "discord 1>&- 2>&-" in the terminal causes the same dialogs to show up?
I have also tried this, no dialog is shown with the error.
You could try to wrap discord in a script in /usr/local/bin that redirects "discord > /dev/null 2>&1" so discord will hopefully not complain when the shells stdout gets closed.
I'll try this
Last edited by nullndr (2024-07-04 15:35:35)
Offline
I'll try this
Works, but I found it quite rough to hard suppress this.
Offline
File a bug upstream. Though it's irritating that you can prevent the EPIPE w/ the indirection/redirection but not force it by closing the output - shrug.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline