I have Node-RED running on ubuntu dekstop locally and i want show a picture in fullscreen from a node-RED trigger, i thought that would be possible from the exec node but got these error
`Command failed: bash /home/mediacenter/.node-red/scripts/2.sh
Unable to init server: Could not connect: Connection refused
(eog:4320): Gtk-WARNING **: 19:32:36.916: cannot open display: `
when i run the command in the terminal is works as expected. Why does i not work from Node-RED?
It is needed because you are running node red in a session that does not have a display associated with it. You would have the same issue if you tried to run the command from any application running in the background. For example if you used ssh to open a terminal on the node-red machine from another PC and ran the command from there.