X2Go Bug report logs - #276
add sudo rule to keep QT_GRAPHICSSYSTEM as env var

version graph

Package: x2goserver; Maintainer for x2goserver is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goserver is src:x2goserver.

Reported by: Pascal d'Hermilly <pascal@dhermilly.dk>

Date: Mon, 29 Jul 2013 14:03:02 UTC

Severity: normal

Tags: pending

Found in version 4.0.1.6

Fixed in version 4.0.1.7

Done: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Bug is archived. No further changes may be made.

Full log


Message #16 received at control@bugs.x2go.org (full text, mbox, reply):

Received: (at control) by bugs.x2go.org; 29 Jul 2013 22:25:14 +0000
From mike.gabriel@das-netzwerkteam.de  Tue Jul 30 00:25:06 2013
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 <mike.gabriel@das-netzwerkteam.de>
To: Pascal d'Hermilly <pascal@dhermilly.dk>, 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)
[Message part 1 (text/plain, inline)]
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
[Message part 2 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Nov 21 15:13:35 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.