You are not logged in.

#1 2025-05-12 16:36:12

oech3
Member
Registered: 2017-09-03
Posts: 75

#!/usr/lib/electron34/electron

#!/usr/lib/electron34/electron --ozone-platform-hint=auto
console.log('Hello, World!');

This makes me sick. Why does this print Hello, World! even I don't have ELECTRON_RUN_AS_NODE=1?

Offline

#2 2025-05-12 20:24:18

seth
Member
Registered: 2012-09-03
Posts: 64,477

Re: #!/usr/lib/electron34/electron

You might eleborate on that because while idk why it does, I'd know even less "why would it not?"…
console.log is a common JS function, the shebang instructs interpretation w/ electron and yeah… electron is then gonna intrepret the JS somewhat correctly?

Offline

#3 2025-05-14 08:28:47

oech3
Member
Registered: 2017-09-03
Posts: 75

Re: #!/usr/lib/electron34/electron

and yeah… electron is then gonna intrepret the JS somewhat correctly?

I can't understand this. But I found `--interactive` flag for Electron.js REPL.

Last edited by oech3 (2025-05-14 08:29:08)

Offline

Board footer

Powered by FluxBB