From mike.gabriel@das-netzwerkteam.de Tue Jul 30 00:25:06 2013 Received: (at control) by bugs.x2go.org; 29 Jul 2013 22:25:14 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=URIBL_BLOCKED autolearn=unavailable version=3.3.2 Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199]) by ymir (Postfix) with ESMTPS id E7FC05DB17; Tue, 30 Jul 2013 00:25:05 +0200 (CEST) Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98]) by freya.das-netzwerkteam.de (Postfix) with ESMTPS id B07FD14F46; Tue, 30 Jul 2013 00:25:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 56E783B96A; Tue, 30 Jul 2013 00:25:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de Received: from grimnir.das-netzwerkteam.de ([127.0.0.1]) by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b4kSXR+9QbhN; Tue, 30 Jul 2013 00:25:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id DC2453BF0C; Tue, 30 Jul 2013 00:25:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 9241E3B96A; Tue, 30 Jul 2013 00:25:04 +0200 (CEST) Received: by grimnir.das-netzwerkteam.de (Postfix, from userid 33) id 9A5613BF0C; Tue, 30 Jul 2013 00:25:03 +0200 (CEST) Received: from p57B4CEB8.dip0.t-ipconnect.de (p57B4CEB8.dip0.t-ipconnect.de [87.180.206.184]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP; Tue, 30 Jul 2013 00:25:03 +0200 Message-ID: <20130730002503.20873y4n4tfolgov@mail.das-netzwerkteam.de> X-Priority: 3 (Normal) Date: Tue, 30 Jul 2013 00:25:03 +0200 From: Mike Gabriel To: Pascal d'Hermilly , 276@bugs.x2go.org Cc: control@bugs.x2go.org Subject: Re: [X2Go-Dev] Bug#276: qt/kde applications does not work as root. References: <51F66E5B.8080200@dhermilly.dk> In-Reply-To: <51F66E5B.8080200@dhermilly.dk> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_3v29iqj27vzz"; protocol="application/pgp-signature"; micalg="pgp-sha1" Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3.4) This message is in MIME format and has been PGP signed. --=_3v29iqj27vzz Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit 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@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. > 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@das-netzwerkteam.de, http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb --=_3v29iqj27vzz Content-Type: application/pgp-signature Content-Description: Digitale PGP-Unterschrift Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAABAgAGBQJR9uu/AAoJEJr0azAldxsxZK8P/0Y4ojlXA5D6XokDvJBTojCk Nn3zyJBg9NSqEq0kImwXvDQ5KODnHEnw/kpX3TwZ//HRXE5Uki0pb8MuwG6WZgUx 8fWGYL73vvRkSO6wciZKbM07CTd+1ZDVLiAlGPXYUJ0nmnSM6VlEHZ2aBOMrDDVO rAfjgW9sn2pUa+8QmHyQ0QGYn9DbeHr+zdOjcBGN2eGvSXXBgk8LgjvIEI0WP0Ri J6uBvrx8B/rJqwRGeyPREhuQAyvDDmojE1syy1ZaTnd1sSjkVemP14RYYw087Y8I LDl2QaW4jINBAIDWzr1daUbHV551IE9ZlfUUCHcMtN5Wt/8PF3FudqRuqWbgAus1 F11dL9seKmD/9CL24KK4OhSwHlHXiFSe3VhDlIE4DtgbLdz5CUdGd93OL+2nDyz3 IhHaiOopXY/2G3ydWjKyUHQ5F7GiauypTzntTCKIQx3zQdOG2brZQ4NgKFPjIQXe LYni/eYNyjSqreO6ibIgK03QIjRUj0stx1OhB+wGqrXfx/3C8A7Ecefp3vRaesQa a7a1FMH1C0kcU4QBAgw3HDVvR+KhFF6Vi0lfrqZKR0+H9kIIM65lv8fR8dDMt2cv bcV01hUjfYQ/SP527n6lGwLmY3QCA1wm3pwQTTCFdtV/A4K4MfFE9jDQ4ktc97Gw aMRdSXTgxmoWWkKwncad =wkhs -----END PGP SIGNATURE----- --=_3v29iqj27vzz--