我最近安装了 anjuta 和 eclipse(ubuntu 12.04)并且在执行时都崩溃了。
Anjuta 抛出这个警告:
** (anjuta:10578): WARNING **: Command line `dbus-launch
--autolaunch=ffab43442e6b810b3d0603ea00000009 --binary-syntax --close-stderr' exited
with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
Eclipse 抛出:
(eclipse:10587): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(eclipse:10587): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion
`G_TYPE_CHECK_INSTANCE (instance)' failed
** (eclipse:10587): WARNING **: Command line `dbus-launch
--autolaunch=ffab43442e6b810b3d0603ea00000009 --binary-syntax --close-stderr' exited
with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
(eclipse:10587): Gtk-CRITICAL **: IA__gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(eclipse:10587): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window
...
Segmentation fault (core dumped)
如何设置 GtkWindow 的屏幕?