Subject: qt/kde applications does not work as root.

From: Pascal d'Hermilly <[email-masked]>
Date: Mon, 29 Jul 2013 15:30:03 +0200

Package: x2goclient
Version: 4.0.1.0

When I start qt/kde applications on the x2go server via the x2goclient, I get a grey application and a lot of error messages in the konsole. A workaround seems to be to change the graphicssystem to native instead of raster. However raster is the default in Kubuntu and it doesnt work when running things as root or through sudo.

administrator@desktops-x2go:~$ sudo dolphin --graphicssystem raster
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x420007d
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x420007d
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x420007d
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x420007d
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x420007d
X Error: BadShmSeg (invalid shared segment parameter) 128
  Extension:    129 (MIT-SHM)
  Minor opcode: 2 (X_ShmDetach)
  Resource id:  0x420007c
administrator@desktops-x2go:~$ sudo dolphin --graphicssystem native

this works fine. Also gtk applications such as gimp works fine as root.

This is quite a problem when you want to add/remove users and do other administrative things in KDE.