From pascal@dhermilly.dk  Wed Jul 31 10:33:17 2013
Received: (at 276) by bugs.x2go.org; 31 Jul 2013 08:33:18 +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=HTML_MESSAGE,
	RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
Received: from pasmtpB.tele.dk (pasmtpb.tele.dk [80.160.77.98])
	by ymir (Postfix) with ESMTP id 7DAA85DB17
	for <276@bugs.x2go.org>; Wed, 31 Jul 2013 10:33:17 +0200 (CEST)
Received: from dhermilly.dk (93-167-5-174-static.dk.customer.tdc.net [93.167.5.174])
	by pasmtpB.tele.dk (Postfix) with ESMTP id DC6AC2D8095;
	Wed, 31 Jul 2013 10:33:16 +0200 (CEST)
Received: from [192.168.1.24] (vpn.transnordictours.dk [93.163.27.230])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by dhermilly.dk (Postfix) with ESMTPSA id 91607865A3;
	Wed, 31 Jul 2013 10:33:16 +0200 (CEST)
Message-ID: <51F8CBCC.3010808@dhermilly.dk>
Date: Wed, 31 Jul 2013 10:33:16 +0200
From: Pascal d'Hermilly <pascal@dhermilly.dk>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7
MIME-Version: 1.0
To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
CC: =?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=
 <ricardo.diaz@oceanosoft.com>, 276@bugs.x2go.org
Subject: Re: [X2Go-Dev] Bug#276: Bug#276: qt/kde applications does not work
 as root.
References: <51F66E5B.8080200@dhermilly.dk> <20130730002503.20873y4n4tfolgov@mail.das-netzwerkteam.de> <51F705BF.1050404@dhermilly.dk> <CAPWth0JV+xJj8vykE=m5nx8DfVAmqCGNRp=r0zWNLL+kThQ=_g@mail.gmail.com> <20130731090852.18251q3rgy6w1kw4@mail.das-netzwerkteam.de>
In-Reply-To: <20130731090852.18251q3rgy6w1kw4@mail.das-netzwerkteam.de>
Content-Type: multipart/alternative;
 boundary="------------090707000301070408020608"

This is a multi-part message in MIME format.
--------------090707000301070408020608
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Den 31-07-2013 09:08, Mike Gabriel skrev:
>>>
>>
>> Can you copy/paste the content of your /etc/sudoers? I just tried to add
>> this line after Defaults and doesn't work for me. I also tried to comment
>> Defaults
>
> Yes, that would be good. Please provide a file that works when being placed into /etc/sudoers.d/. 

Actually mine broke again, because I apparently didn't use visudo. Anyway, I made a 3-step guide for getting it to work. This time I tested after a restart ;-)
Do as root:

echo "Defaults        env_keep +=\"QT_GRAPHICSSYSTEM\"" > /etc/sudoers.d/X2Go
chmod 0440 /etc/sudoers.d/X2Go
service sudo restart

--------------090707000301070408020608
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Den 31-07-2013 09:08, Mike Gabriel skrev:<br>
    <blockquote
      cite="mid:20130731090852.18251q3rgy6w1kw4@mail.das-netzwerkteam.de"
      type="cite">
      <blockquote type="cite" style="color: #000000;">
        <blockquote type="cite" style="color: #000000;"><br>
        </blockquote>
        <br>
        Can you copy/paste the content of your /etc/sudoers? I just
        tried to add
        <br>
        this line after Defaults and doesn't work for me. I also tried
        to comment
        <br>
        Defaults
        <br>
      </blockquote>
      <br>
      Yes, that would be good. Please provide a file that works when
      being placed into <i class="moz-txt-slash"><span
          class="moz-txt-tag">/</span>etc/sudoers.d<span
          class="moz-txt-tag">/</span></i>.
    </blockquote>
    <br>
    Actually mine broke again, because I apparently didn't use visudo.
    Anyway, I made a 3-step guide for getting it to work. This time I
    tested after a restart ;-)<br>
    Do as root:<br>
    <br>
    echo "Defaults        env_keep +=\"QT_GRAPHICSSYSTEM\"" &gt;
    /etc/sudoers.d/X2Go<br>
    chmod 0440 /etc/sudoers.d/X2Go<br>
    service sudo restart<br>
  </body>
</html>

--------------090707000301070408020608--

