[MacPorts] #63990: xorg-server and DISPLAY
MacPorts
noreply at macports.org
Thu Nov 18 14:33:17 UTC 2021
#63990: xorg-server and DISPLAY
--------------------------+----------------------
Reporter: haberg-1 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: monterey
Port: xorg-server |
--------------------------+----------------------
Comment (by haberg-1):
I have found the problem, I think:
There is a file .zprofile added by the MacPorts installer, with the
contents below. It adds DISPLAY=:0, and then the automatic launch of the
X11 app does not work. If I set
export DISPLAY=/private/tmp/com.apple.launchd.z8pZ6R48KZ/org.macports:0
then 'eyes' will launch even if the X11 app is not open.
If I move the .zprofile to another name, then it will set
DISPLAY=/private/tmp/com.apple.launchd.nDro5hTUYP/org.xquartz:0
and the xeyes will not open regardless if X11 is open.
I might add that I do no like the clandestine addition of .zprofile that
the MacPorts installer makes, because I have the environment defined in
.profile, which is then I call from .zshrc.
- .zprofile
# MacPorts Installer addition on 2020-11-15_at_10:14:24: adding an
appropriate PATH variable for use with MacPorts.
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.
# MacPorts Installer addition on 2020-11-15_at_10:14:24: adding an
appropriate DISPLAY variable for use with MacPorts.
export DISPLAY=:0
# Finished adapting your DISPLAY environment variable for use with
MacPorts.
-
--
Ticket URL: <https://trac.macports.org/ticket/63990#comment:23>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list