[X2Go-Dev] Bug#276: Bug#276: qt/kde applications does not work as root.
Mike Gabriel
mike.gabriel at das-netzwerkteam.de
Tue Jul 30 00:25:03 CEST 2013
reassign #276 x2goserver
found #276 4.0.1.6
thanks
Hi Pascal,
reassigning this bug report to X2Go Server, not X2Go Client.
On Mo 29 Jul 2013 15:30:03 CEST Pascal d'Hermilly wrote:
> 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 at 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 at 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.
>
In x2goruncommand (the server-side script that is responsible for any
application startup) sets this env var:
"""
# disable rastering in >= KDE4.8 and Qt4.8
export QT_GRAPHICSSYSTEM=native
"""
That piece of info probably gets lost during the sudo call you perform.
Maybe you want to play with /etc/sudoers...
""" special line in sudo
%admins ALL=(ALL) SETENV: /usr/bin/dolphin
"""
And then: sudo dolphin
Does that work?
Mike
--
DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20130730/ed5c222c/attachment.pgp>
More information about the x2go-dev
mailing list