[MacPorts] #63217: (gpredict:17718): Gtk-WARNING **: 12:26:26.523: cannot open display: :0
MacPorts
noreply at macports.org
Wed Jul 7 01:33:53 UTC 2021
#63217: (gpredict:17718): Gtk-WARNING **: 12:26:26.523: cannot open display: :0
------------------------+--------------------
Reporter: WHNiii385 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: |
------------------------+--------------------
Comment (by ryandesign):
Certainly I admit there was a bug. If you want to read more about it, it's
#61649. The bug that caused the problem was fixed, so new installations
using MacPorts 2.7.0 and later will no longer be affected. It would have
been a good idea for us to also fix up existing installations, but nobody
wrote code to do that. We are a volunteer project and things only get done
when people do them.
I wasn't more specific about "shell startup file" because it varies
depending on which shell you use. You can run `echo $SHELL` to see what
your shell is. If it is zsh, then your shell startup file is the file
`.zprofile` in your home directory. If your shell is bash, then the
startup file is `.bash_profile` in your home directory if present,
otherwise it is `.bash_login` in your home directory if present, otherwise
it is `.profile` in your home directory. Files whose names begin with `.`
are normally hidden in the Finder so you either have to show hidden files
in the Finder or else open the file into your editor by using the
Terminal. For example, if you use the zsh shell, you could use `open -e
~/.zprofile`
Once you have found and opened your shell startup file, look for any lines
reading `export DISPLAY=:0` and remove them. Save and close the file.
--
Ticket URL: <https://trac.macports.org/ticket/63217#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list