Gentoo Archives: gentoo-user

From: Steffen Loos <fenlo@×××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Ever since a recent update, vim misbehaves when run as root
Date: Fri, 30 Jul 2010 06:55:48
Message-Id: 4C527732.9050701@gmx.net
In Reply to: Re: [gentoo-user] Ever since a recent update, vim misbehaves when run as root by Walter Dnes
1 Am 30.07.2010 05:58, schrieb Walter Dnes:
2 > On Thu, Jul 29, 2010 at 01:35:46PM -0700, Kevin O'Gorman wrote
3 >> I'm not exactly sure when, but starting a month or so ago, vim has been
4 >> acting weird when
5 >> I run it as root. For one thing, there are messages
6 >> Xlib: connection to ":0.0" refused by server
7 >
8 > General rule... by default X apps cannot be run by any user other than
9 > the one who started the X session. This bites you when you launch X as
10 > regular user, and then "su -". Is vim considered an X app? Yes, if
11 > you've emerged vim with the X USE flag enabled. You have two options.
12 >
13 > 1) Get rid of the X-integration by going into /etc/portage/package.use
14 > and adding the line...
15 >
16 > app-editors/vim -X
17 >
18 > You'll have to re-emerge vim after making that change. This gets rid
19 > of X-integration for vim.
20
21 ... or you start with:
22 ~# vim -X
23
24 regards,
25 Steffen