From unknown Fri Mar 29 01:20:54 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#276: [X2Go-Dev] Bug#276: Bug#276: qt/kde applications does not work as root. Reply-To: Pascal d'Hermilly , 276@bugs.x2go.org Resent-From: Pascal d'Hermilly Resent-To: x2go-dev@lists.berlios.de Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Wed, 31 Jul 2013 08:48:01 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 276 X-X2Go-PR-Package: x2goserver X-X2Go-PR-Keywords: Received: via spool by 276-submit@bugs.x2go.org id=B276.137525959810768 (code B ref 276); Wed, 31 Jul 2013 08:48:01 +0000 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 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 CC: Ricardo =?UTF-8?Q?D=C3=ADaz_?= =?UTF-8?Q?Mart=C3=ADn?= , 276@bugs.x2go.org References: <51F66E5B.8080200@dhermilly.dk> <20130730002503.20873y4n4tfolgov@mail.das-netzwerkteam.de> <51F705BF.1050404@dhermilly.dk> <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 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--