Opened 8 years ago

Last modified 8 years ago

#42739 new defect

zenity on Maverics errors with GTK-warning cannot open display

Reported by: john@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: mavericks Cc:
Port: zenity


I have a fresh install of Zenity. The install went through a list of dependencies and it all installed without error. Any attempt at running Zenity gives the error "Gtk-WARNING : cannot open display". I checked the dbus-session and dbus-system plists, and those are running.

When I run zenity from Shell, the output is a blank line, followed by the GTK-Warning.

Change History (3)

comment:1 Changed 8 years ago by ryandesign (Ryan Schmidt)

Keywords: gtk-warning removed

Which X server are you using, or wanting to use? (xorg-server port in MacPorts? Xquartz?) Is the DISPLAY environment variable set up correctly for that X server?

comment:2 Changed 8 years ago by john@…

Hi Ryan,

I have xorg-server. I just reinstalled that from MacPorts. It may not have been installed before. Now after restarting, the error is totally different.

I'm not sure if / how to set my Display variable to that server. I may have missed a step here. Now that xorg-server is installed, what else do I need to do?

Thanks so much!

comment:3 Changed 8 years ago by ryandesign (Ryan Schmidt)

Run echo $DISPLAY to see what your DISPLAY variable is set to. If the value does not include the string "org.macports", then install the xinit port, and follow the instructions it prints after installation.

Note: See TracTickets for help on using tickets.