Package: cappuccino Version: 0.5.1-2.2 Tags: patch Cappuccino segfaults if DISPLAY is missing, eg. on a getty etc:
$ DISPLAY= /usr/bin/cappuccino /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk.Warning) /usr/bin/cappuccino:24: Warning: invalid (NULL) pointer instance gtk.Window.__init__(self) /usr/bin/cappuccino:24: Warning: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed gtk.Window.__init__(self) /usr/bin/cappuccino:134: GtkWarning: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window splash.show_all() /usr/bin/cappuccino:134: GtkWarning: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed splash.show_all() /usr/bin/cappuccino:134: GtkWarning: IA__gdk_colormap_get_visual: assertion 'GDK_IS_COLORMAP (colormap)' failed splash.show_all() /usr/bin/cappuccino:134: GtkWarning: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed splash.show_all() /usr/bin/cappuccino:134: GtkWarning: IA__gdk_window_new: assertion 'GDK_IS_WINDOW (parent)' failed splash.show_all() zsh: segmentation fault (core dumped) DISPLAY= /usr/bin/cappuccino Patch attached. Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- cappuccino-0.5.1/cappuccino.orig 2015-09-18 20:59:56.237597873 +0100 +++ cappuccino-0.5.1/cappuccino 2015-09-18 21:00:14.829771031 +0100 @@ -130,6 +130,7 @@ if __name__ == "__main__": + gtk.init_check() splash = CappuccinoSplash() splash.show_all() t = gobject.timeout_add(3000, startup, splash)