You are not logged in.

#1 2025-10-19 07:54:42

Libroru
Member
From: Germany
Registered: 2024-07-25
Posts: 11

Electron Apps Can't Start And Crash

Hello everyone,

as of recently, I haven't been able to run any electron apps.
The only way to run them is by running them inside of a console.

Disowning them inside of that console also doesn't work.
That just throws an error message.
DFmCyoD.png

This error also never closes.
When you press 'ok' it just opens another instance of that window.
The only way to get rid of this is by killing the program instance.

The error above was an example with discord,
but this also happens with apps like Postman or Insomnia.

Journalctl shows nothing and (in this case the Discord logs) also show nothing.

Does anyone have an idea what the issue might be?
Thanks in advance!

Offline

#2 2025-10-19 08:27:22

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,859

Re: Electron Apps Can't Start And Crash

Since the error is from console.log and running inside an interactive shell works I'd say it's because the process cannot handle a closed stdout, but disown'ing doesn't change that (at least on reasonable shells - do you use fish or so?)
Can you "discord > /dev/null 2>&1 &" and then disown process?

Offline

#3 2025-10-19 08:30:59

Libroru
Member
From: Germany
Registered: 2024-07-25
Posts: 11

Re: Electron Apps Can't Start And Crash

seth wrote:

Since the error is from console.log and running inside an interactive shell works I'd say it's because the process cannot handle a closed stdout, but disown'ing doesn't change that (at least on reasonable shells - do you use fish or so?)
Can you "discord > /dev/null 2>&1 &" and then disown process?

That seems to work fine!
I use zsh for my shell.

Last edited by Libroru (2025-10-19 08:43:06)

Offline

#4 2025-10-19 12:43:00

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,859

Re: Electron Apps Can't Start And Crash

type -a disown

(I'm a bit confused about disowning resulting in a loss of the stdout)

But you'll likely be able to leverage that into a workaround by shadowing the desktop service, https://wiki.archlinux.org/title/Deskto … ktop_files

Offline

Board footer

Powered by FluxBB