Gentoo Archives: gentoo-user

From: Andrey Vul <andrey.vul@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: X programs as root
Date: Fri, 24 Sep 2010 22:25:14
Message-Id: AANLkTinsuDfkt444MxXLm_66V719COJ8tT267OdZ+O9N@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: X programs as root by Dale
1 On Wed, Sep 22, 2010 at 21:18, Dale <rdalek1967@×××××.com> wrote:
2 > Nikos Chantziaras wrote:
3 >>
4 >> On 09/22/2010 09:48 PM, Andrey Vul wrote:
5 >>>
6 >>> When I launch X programs via sudo, I get the following:
7 >>>
8 >>> $sudo gui-admin
9 >>> No protocol specified
10 >>> gui-admin: cannot connect to X server :0
11 >>>
12 >>> ( Assume gui-admin is an X program )
13 >>>
14 >>> But (gk|kde)su(do)? works. This is somewhat confusing.
15 >>
16 >> sudo doesn't keep the $DISPLAY environment variable by default.  There
17 >> could be other issues too.  Best stick to kdesu and friends; that's what
18 >> they are there for.
19 >>
20
21 It's the "other issues".
22 >>
23 >
24 > Well, I noticed after the recent upgrade to 4.5.1 that mine doesn't work
25 > either.  It worked before but not now.  I'm not sure what changed between
26 > 4.4 and 4.5.1 but it broke my konqueror as root and other programs as well.
27 >  Still have some I haven't tried tho.  Konqueror is the one I need most.
28 >  Oh, I can get Dolphin to work tho.  The conspiracy theory part in me is
29 > starting to think.
30
31 Same here, s/konqueror/every gui program run via sudo/
32 >
33 > Sure would like to get this working again too.
34 Ditto. VMware tools, etc, are all gui and sometimes sudo is eaiser to
35 use than kdesu.