Bug#549290: vim-gnome: What does "as superuser" mean

James Vega jamessan at debian.org
Fri Oct 2 13:39:22 UTC 2009


reassign 549290 metacity 1:2.28.0-1
retitle 549290 gvim window title shows "(as superuser)" when not
running as superuser
thanks

On Fri, Oct 2, 2009 at 2:38 AM, Hongzheng Wang <wanghz at gmail.com> wrote:
> I have not used GUI vim for long time.  Today I accidently launched
> gvim from gnome-terminal and found there is a string "(as superuser)" in
> the window title bar of gvim.  Since "superuser" is an important word in
> Linux world, I would like to file the report to verify the behavior.

This was functionality added to Metacity in the latest release[0][1].
Metacity will now check which user the process is running as and
modify the window title to show "(as ...)" if that user doesn't match
the one metacity is running as.  Reassigning accordingly.

> To be specific, launching gvim from console will have a gvim window
> whose title bar contains "xxx - GVIM (as superuser)" where xxx is the
> opened file.  If "-f" option is used, no "(as superuser)", however.

I'm not sure how "-f" would affect this.  It simple controls whether
gvim runs in the foreground or forks and returns control to the
process that called it.

> I have tested by using -u NONE -U NONE, and the problem still exists.
> Fortunately, gvim seems not gets root privilege even "(as superuser)"
> exists.

Then it sounds like Metacity is having a problem properly detecting
which user a process is running as.

[0] - https://bugzilla.gnome.org/show_bug.cgi?id=549389
[1] - http://git.gnome.org/cgit/metacity/commit/?id=ab6aa5463ffdd5cfaf729eb1f5407be749ba1090





More information about the pkg-vim-maintainers mailing list