#67753 closed defect (worksforme)

"Cannot open display"

Reported by: haelen (Tim) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: gimp2

Description

Received this error after issuing 'gimp' command. Am running High Sierra 10.13.6 (17G14042)

Change History (3)

comment:1 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)

That means you haven't installed an X server or set it up correctly. Normally it should suffice to install the xorg-server port and follow the instructions it prints, which includes logging out and logging back in afterward.

comment:2 Changed 16 months ago by haelen (Tim)

Ah, perfect. Thank you!

comment:3 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: worksforme
Status: newclosed

Installing xorg-server will also install its dependency xinit, which installs a launchagent that runs when you log in which sets up the DISPLAY environment variable such that, if you try to launch an X app, the X server will be started first. So "Cannot open display" means that the DISPLAY environment variable doesn't point to a valid display, either because xinit's launchagent isn't running or because you're overriding the DISPLAY environment variable in a shell startup script or somewhere else (if so, remove that override).

Note: See TracTickets for help on using tickets.