XV/GIMP/etc: Can't open display
macportsusers-20171215 at billmail.scconsult.com
Fri Jan 28 22:24:21 UTC 2022
On 2022-01-28 at 16:34:29 UTC-0500 (Sat, 29 Jan 2022 08:34:29 +1100
Dave Horsfall <dave at horsfall.org>
is rumored to have said:
> MacBook Pro (13-inch, Mid 2010), saddled with High Sierra 10.13.6 (as
> as it will go).
> Back when I was running Sierra these tools worked just fine; after
> upgrading to HS (and rebuilding MacPorts that took almost a day)
> went pear-shaped:
> mackie:~ dave$ xv
> xv: Can't open display
> mackie:~ dave$ gimp
> Cannot open display:
> mackie:~ dave$ echo $DISPLAY
> mackie:~ dave$
> Is this something I forgot to do during the upgrade?
Did you reinstall the X server? I believe that you need to. Specifically
the xorg-server and xinit ports.
> I set $DISPLAY to
> ":0" (an old Unix trick) to no effect, so I guess it's using a named
> instead but I cannot find it; poking around doesn't seem to uncover
> anything applicable to this, and I certainly won't trust any "advice"
Properly installed, it Just Works. At least after a logout/login cycle.
If it is correct, you will have a DISPLAY of the form:
To get that, you need the xinit port.
bill at scconsult.com or billcole at apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire
More information about the macports-users