root can't cnnect to X

Forum rules
Before you post please read this

root can't cnnect to X

Postby alex72 on Tue Apr 23, 2013 7:20 am

Hello

When I launch update-manager, the prog asks me the root password (my password) and then nothing happens.

In fact, I launched a bash, enter mintupdate, the program asks me the password, I entered it, return and nothing happens. I ssaw this in bash:

/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/lib/linuxmint/mintUpdate/mintUpdate.py:1489: Warning: invalid (NULL) pointer instance
statusIcon = gtk.StatusIcon()
/usr/lib/linuxmint/mintUpdate/mintUpdate.py:1489: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
statusIcon = gtk.StatusIcon()
/usr/lib/linuxmint/mintUpdate/mintUpdate.py:1489: GtkWarning: IA__gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed
statusIcon = gtk.StatusIcon()
/usr/lib/linuxmint/mintUpdate/mintUpdate.py:1489: GtkWarning: IA__gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed
statusIcon = gtk.StatusIcon()
/usr/lib/linuxmint/mintUpdate/mintUpdate.py:1489: GtkWarning: IA__gdk_x11_display_get_xdisplay: assertion `GDK_IS_DISPLAY (display)' failed
statusIcon = gtk.StatusIcon()
/usr/lib/linuxmint/mintUpdate/mintUpdate.py:1489: GtkWarning: IA__gdk_screen_get_number: assertion `GDK_IS_SCREEN (screen)' failed
statusIcon = gtk.StatusIcon()
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
bash: /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57:: No such file or directory

Even, when i type xhost + (which isn't good, because it's dangerous), i've got the same message.

So what's wrong?

Al
Last edited by alex72 on Wed Apr 24, 2013 7:15 am, edited 1 time in total.
alex72
Level 1
Level 1
 
Posts: 5
Joined: Sun Apr 21, 2013 6:06 am

Linux Mint is funded by ads and donations.
 

Re: root can't cnnect to X

Postby alex72 on Wed Apr 24, 2013 2:23 am

If I enter xhost + as user(=owner of the X-Session) and the do a su -, enter my password and then as superuser enter mintupdate, all works again.

System is Linux Mint 14 KDE Edition

Thank you for an explanation of the problem and a solution to do it entirely in KDE.

Al
alex72
Level 1
Level 1
 
Posts: 5
Joined: Sun Apr 21, 2013 6:06 am


Return to KDE

Who is online

Users browsing this forum: No registered users and 7 guests