Globs site

https://globs.org/

Category : External Editor

How to use an X11 editor with MacOSX

Prerequisite: X11 must be installed and started when you want to use your editor.

Then, you need to have the DISPLAY environment variable defined at the begining of your mac session. For this, create or modify the file: ~/.MacOSX/environment.plist, where ~ is your start folder. You will probaby have to begin with creating the folder .MacOSX.


File content:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DISPLAY</key>
<string>:0.0</string>
</dict>
</plist>

If the file already exists, you just need to add these 2 values
        <key>DISPLAY</key>
<string>:0.0</string>

You need to log out and log back in for the change to be taken in account.