Commit 7092d47f authored by lafleur's avatar lafleur
Browse files

check if user is root before logging in GObject

parent d6a9efcb
......@@ -31,10 +31,11 @@ require_version('Gtk', '3.0')
from gi.repository import Gtk
endpython
augroup gtkRecent
au!
au BufRead * call GtkRecentLog (expand("%:p"), "read")
au BufNewFile * call GtkRecentLog (expand("%:p"), "new")
au BufWrite * call GtkRecentLog (expand("%:p"), "write")
augroup END
if match(system('whoami'), 'root') == -1
augroup gtkRecent
au!
au BufRead * call GtkRecentLog (expand("%:p"), "read")
au BufNewFile * call GtkRecentLog (expand("%:p"), "new")
au BufWrite * call GtkRecentLog (expand("%:p"), "write")
augroup END
endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment