Question

"Cannot open display" error on a GIMP batch script.

Hello,

For an application I need to run simple batch scripts using GIMP. Once the command is executed, the error I get is:

Cannot open display:

It seems that even using the --no-interface flag it requires a display.

What might be the best way of solving this with minimal impact on CPU/Mem usage? I do not need to personally see the display, it should only run for this batch script.

Thank you!


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey, @PSNick

I can see that you’re running this on Ubuntu droplet/server. May I ask if you’ve checked if X11Forwarding is enabled in the sshd config? /etc/ssh/sshd_config

X11Forwarding yes

Let me know how it goes.