Node Red open New terminal

Hello.

I am trying to open a terminal running a exec node. With a ui_button I inject a timestamp in exec node in order to open The terminal.

In exec node I write command : "gnome-terminal", and when I run exec node it gives me this error: unable to init server :Could not connect : Connection refused. Failed to parse argument: Cannot open display :

Do you have any ideas what am I doing wrong?

Thanks in advance!

Try
DISPLAY=:0 gnome-terminal
which tells the system to use the primary display. Without that it does not know where to display it. You don't need it when running manually as you are already attached to a display. It will open on the machine running node-red of course, not the machine running the browser (if different).

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.