Hi,
I’m trying opensuse for the first time an I would like to use it as my daily distribution.
The only thing that’s not working is termiantor, it complains about $DISPLAY:
5006415:~ #terminator
You need to run terminator in an X environment. Make sure $DISPLAY is properly set
I read about problems when the hostname, /etc/hosts or the $DISPALY is not properly set so I tried different setups:
Here is the actual:
5006415:~ # echo $DISPLAY
:0
5006415:~ # cat /etc/hostname
5006415
5006415:~ # cat /etc/hosts
hosts This file describes a number of hostname-to-address
mappings for the TCP/IP subsystem. It is mostly
used at boot time, when no name servers are running.
On small systems, this file can be used instead of a
“named” name server.
Syntax:
IP-Address Full-Qualified-Hostname Short-Hostname
127.0.0.1 localhost
special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
I also searched for the corresponding line in /usr/bin/terminator and commented it out:
Check we have simple basics like Gtk+ and a valid $DISPLAY
#try:
import gi
gi.require_version(‘Gtk’,‘3.0’)
# pylint: disable-msg=W0611
from gi.repository import Gtk, Gdk
if Gdk.Display.get_default() == None:
print('You need to run terminator in an X environment. ’ \
‘Make sure $DISPLAY is properly set’)
sys.exit(1)
Then this error comes up when stating terminator:
5006415:~> terminator
/usr/lib/python2.7/site-packages/terminatorlib/util.py:19: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version(‘Gtk’, ‘3.0’) before import to ensure that the right version gets loaded.
from gi.repository import Gtk, Gdk
(process:17581): Gdk-CRITICAL **: gdk_display_get_name: assertion ‘GDK_IS_DISPLAY (display)’ failed
(process:17581): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion ‘GDK_IS_DISPLAY (display)’ failed
(process:17581): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion ‘GDK_IS_DISPLAY (display)’ failed
(process:17581): Gdk-CRITICAL **: gdk_screen_get_root_window: assertion ‘GDK_IS_SCREEN (screen)’ failed
(process:17581): Gdk-CRITICAL **: gdk_keymap_have_bidi_layouts: assertion ‘GDK_IS_KEYMAP (keymap)’ failed
/usr/lib/python2.7/site-packages/terminatorlib/window.py:24: Warning: invalid (NULL) pointer instance
Keybinder.init()
/usr/lib/python2.7/site-packages/terminatorlib/window.py:24: Warning: g_signal_connect_data: assertion ‘G_TYPE_CHECK_INSTANCE (instance)’ failed
Keybinder.init()
Segmentation fault (core dumped)
any advice how to continue?
br
Daniel