1 |
On Saturday 25 September 2010, Dale wrote: |
2 |
> Nikos Chantziaras wrote: |
3 |
> > On 09/23/2010 04:18 AM, Dale wrote: |
4 |
> >> Nikos Chantziaras wrote: |
5 |
> >>> On 09/22/2010 09:48 PM, Andrey Vul wrote: |
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 |
18 |
> >>> what they are there for. |
19 |
> >> |
20 |
> >> Well, I noticed after the recent upgrade to 4.5.1 that mine doesn't work |
21 |
> >> either. It worked before but not now. I'm not sure what changed between |
22 |
> >> 4.4 and 4.5.1 but it broke my konqueror as root and other programs as |
23 |
> >> well. Still have some I haven't tried tho. Konqueror is the one I need |
24 |
> >> most. Oh, I can get Dolphin to work tho. The conspiracy theory part in |
25 |
> >> me is starting to think. |
26 |
> >> |
27 |
> >> Sure would like to get this working again too. |
28 |
> > |
29 |
> > Again, use kdesu, not sudo. |
30 |
> > |
31 |
> > But if some reason you want sudo, /etc/sudoers has some info: |
32 |
> > ## Run X applications through sudo |
33 |
> > |
34 |
> > Read the comments there and uncomment what suits you. Did I mention |
35 |
> > that you should use kdesu instead of sudo? :-P |
36 |
> |
37 |
> Well, I don't really know what it is using. I just set up the menu item |
38 |
> to run the program as root. I don't know if it uses su -, kdesu, sudo |
39 |
> or what. I just know it worked until the upgrade a few days ago. |
40 |
> |
41 |
> Since KDE proclaimed this was supposed to be ready for widespread use |
42 |
> and cut off KDE3, I sure do wish they would make up their mind HOW |
43 |
> things are going to work. I would think they need to know that before |
44 |
> claiming something was ready for widespread use. Makes me want to go |
45 |
> back to KDE 3.5. At least I could get everything I need to work and |
46 |
> survive a upgrade too. ;-) |
47 |
> |
48 |
> Oh well. This is the new normal for KDE I guess. lol |
49 |
> |
50 |
> Dale |
51 |
> |
52 |
> :-) :-) |
53 |
|
54 |
I don't know what you are talking about. Setting up menu items? wtf? |