[opensuse-gnome] GtkWarning: could not open display
Hello List, i'm using Tumbleweed with the GNOME Desktop. Also i have installed galternatives and tried to launch it in the console. But i got: sascha@linux-ktr9:~$ sudo galternatives /usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk.Warning) /usr/lib/python2.7/site-packages/galternatives/main.py:56: Warning: invalid (NULL) pointer instance self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: Warning: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: IA__gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: Warning: g_object_get: assertion 'G_IS_OBJECT (object)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: Warning: value "TRUE" of type 'gboolean' is invalid or out of range for property 'visible' of type 'gboolean' self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: IA__gdk_pango_context_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_context_set_font_description: assertion 'context != NULL' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_context_set_base_dir: assertion 'context != NULL' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_context_set_language: assertion 'context != NULL' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_layout_new: assertion 'context != NULL' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_layout_set_text: assertion 'layout != NULL' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_layout_set_attributes: assertion 'layout != NULL' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_layout_set_alignment: assertion 'layout != NULL' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_layout_set_ellipsize: assertion 'PANGO_IS_LAYOUT (layout)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_layout_set_single_paragraph_mode: assertion 'PANGO_IS_LAYOUT (layout)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_layout_set_width: assertion 'layout != NULL' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_layout_get_extents: assertion 'layout != NULL' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_layout_get_pixel_extents: assertion 'PANGO_IS_LAYOUT (layout)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: Warning: g_object_unref: assertion 'G_IS_OBJECT (object)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: IA__gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: IA__gtk_icon_size_lookup_for_settings: assertion 'GTK_IS_SETTINGS (settings)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: Invalid icon size 3 self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: IA__gtk_icon_theme_load_icon: assertion 'GTK_IS_ICON_THEME (icon_theme)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: Error loading theme icon 'document-new' for stock: self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: gtkstyle.c:2358: invalid icon size '3' self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: IA__gtk_style_render_icon: assertion 'pixbuf != NULL' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: Warning: g_object_ref: assertion 'G_IS_OBJECT (object)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_context_get_language: assertion 'context != NULL' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_context_get_metrics: assertion 'PANGO_IS_CONTEXT (context)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_font_metrics_get_approximate_char_width: assertion 'metrics != NULL' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: Error loading theme icon 'document-properties' for stock: self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: Error loading theme icon 'edit-delete' for stock: self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_layout_set_justify: assertion 'layout != NULL' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_layout_set_wrap: assertion 'PANGO_IS_LAYOUT (layout)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: IA__gdk_screen_get_width: assertion 'GDK_IS_SCREEN (screen)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_layout_get_context: assertion 'layout != NULL' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_font_metrics_get_approximate_digit_width: assertion 'metrics != NULL' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_font_metrics_get_ascent: assertion 'metrics != NULL' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: PangoWarning: pango_font_metrics_get_descent: assertion 'metrics != NULL' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: gtk_widget_size_allocate(): attempt to allocate widget with width -1802316 and height 526350 self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: gtk_widget_size_allocate(): attempt to allocate widget with width -1774212 and height 32 self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: IA__gdk_colormap_get_visual: assertion 'GDK_IS_COLORMAP (colormap)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') /usr/lib/python2.7/site-packages/galternatives/main.py:56: GtkWarning: IA__gdk_window_new: assertion 'GDK_IS_WINDOW (parent)' failed self.gui = glade.XML ('/usr/share/galternatives/galternatives.glade') Segmentation fault Maybe anyone knows why this happens and how to fix it? Greetings Sascha -- Sascha Manns Email: saigkill@opensuse.org | Blog: http://saigkill.tuxfamily.org GPG: 0x62ECD463 -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org
Am Sonntag, den 19.03.2017, 12:04 +0100 schrieb Sascha Manns:
Hello List,
i'm using Tumbleweed with the GNOME Desktop. Also i have installed galternatives and tried to launch it in the console. But i got: [...]
I have checked the repository list and found out, that all repos are targeting Tumbleweed, but not Gnome:Apps. It targets Factory. For that i doesn't found any Tumbleweed Repo. Are the contents from Gnome:Apps available in Tumbleweed? Maybe the error goes away, if all repos targeting just Tumbleweed. Greetings Sascha -- Sascha Manns Email: saigkill@opensuse.org | Blog: http://saigkill.tuxfamily.org GPG: 0x62ECD463 -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org
Le dimanche 19 mars 2017 à 12:04 +0100, Sascha Manns a écrit :
Hello List,
i'm using Tumbleweed with the GNOME Desktop. Also i have installed galternatives and tried to launch it in the console. But i got:
sascha@linux-ktr9:~$ sudo galternatives /usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
This is the issue.. Using sudo on a GUI program. It is stripping DISPLAY environmnent variable. You should avoid to run graphical program as root, but if you really must, either use "xdg-su -c program" or using "sudo -E" but the second one might cause a lot of issues with interaction with other desktop components (dbus socket, etc..) -- Frederic Crozat Enterprise Desktop Release Manager SUSE -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org
Hi Frederic, Am Montag, den 20.03.2017, 10:12 +0100 schrieb Frederic Crozat:
Le dimanche 19 mars 2017 à 12:04 +0100, Sascha Manns a écrit :
Hello List,
i'm using Tumbleweed with the GNOME Desktop. Also i have installed galternatives and tried to launch it in the console. But i got:
sascha@linux-ktr9:~$ sudo galternatives /usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
This is the issue.. Using sudo on a GUI program. It is stripping DISPLAY environmnent variable.
You should avoid to run graphical program as root, but if you really must, either use "xdg-su -c program" or using "sudo -E" but the second one might cause a lot of issues with interaction with other desktop components (dbus socket, etc..)
Thank you very much for helping out. Now it works. Can we add the tumbleweed repository to GNOME:Apps? Greetings Sascha -- Sascha Manns Email: saigkill@opensuse.org | Blog: http://saigkill.tuxfamily.org GPG: 0x62ECD463 -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org
On Mon, 2017-03-20 at 16:34 +0100, Sascha Manns wrote:
Can we add the tumbleweed repository to GNOME:Apps?
Factory == Tumbleweed - with the sub-message that a project providing 'openSUSE_Factory' does not consider itself as a user-facing repo, but as a devel repo - which is exactly true for GNOME:Apps Enabling build for openSUSE_Tumbleweed in plus is a waste of resources, replacing openSUSE_Fatory by openSUSE_Tumbleweed means braking all setups of users that have this repo enabled (I rather consider dropping even more of the targets) So far nobody could sell me on the switch. Cheers, Dominique
Hi Dominique, Am Montag, den 20.03.2017, 16:45 +0100 schrieb Dimstar / Dominique Leuenberger:
On Mon, 2017-03-20 at 16:34 +0100, Sascha Manns wrote:
Can we add the tumbleweed repository to GNOME:Apps?
Factory == Tumbleweed - with the sub-message that a project providing 'openSUSE_Factory' does not consider itself as a user-facing repo, but as a devel repo - which is exactly true for GNOME:Apps
Enabling build for openSUSE_Tumbleweed in plus is a waste of resources, replacing openSUSE_Fatory by openSUSE_Tumbleweed means braking all setups of users that have this repo enabled (I rather consider dropping even more of the targets)
So far nobody could sell me on the switch.
Cheers, Dominique Got it. Thanks for clarifying :-) -- Sascha Manns Email: saigkill@opensuse.org | Blog: http://saigkill.tuxfamily.org GPG: 0x62ECD463 -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org
participants (3)
-
Dimstar / Dominique Leuenberger
-
Frederic Crozat
-
Sascha Manns