How to fix the problem of "Cannot open display"?

Peng Yu pengyu.ut at gmail.com
Mon Oct 5 12:07:11 PDT 2009


On Mon, Oct 5, 2009 at 1:39 PM, Rainer Müller <raimue at macports.org> wrote:
> Peng Yu wrote:
>> On Sun, Oct 4, 2009 at 10:05 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
>>> launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
>>>
>>> So run that command (not as sudo).
>>
>> Here is what I got after running the command that you mentioned.
>> What's the problem?
>>
>> $sudo port install dbus
>> Password:
>> --->  Computing dependencies for dbus
>> --->  Cleaning dbus
>> $ launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
>> launchctl: CFURLWriteDataAndPropertiesToResource(/Library/LaunchAgents/org.freedesktop.dbus-session.plist)
>> failed: -10
>> $ls /Library/LaunchAgents/org.freedesktop.dbus-session.plist
>> /Library/LaunchAgents/org.freedesktop.dbus-session.plist
>
> The -w option requires write access to that file what you usually do not
> have as a normal user. It is used to remove the Disabled key from the file.
>
> Alternatively you can force the load like this:
> $ launchctl load -F /Library/LaunchAgents/org.freedesktop.dbus-session.plist

Here is what I get and I still get errors when I run gnome-terminal.

$ launchctl load -F /Library/LaunchAgents/org.freedesktop.dbus-session.plist
org.freedesktop.dbus-session: Already loaded
$ gnome-terminal
Xlib:  extension "RANDR" missing on display "/tmp/launch-blAgTJ/:0".
**
ERROR:terminal-app.c:1433:terminal_app_init: assertion failed:
(app->system_font_desc != NULL)
Abort trap


More information about the macports-users mailing list