summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/widgets/titlebar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/titlebar.py b/ranger/gui/widgets/titlebar.py
index 7b557f3d..6d5c9839 100644
--- a/ranger/gui/widgets/titlebar.py
+++ b/ranger/gui/widgets/titlebar.py
@@ -56,7 +56,7 @@ class TitleBar(Widget):
 		import socket, os
 
 		username = os.getenv('USER')
-		if logname == 'root':
+		if username == 'root':
 			clr = 'bad'
 		else:
 			clr = 'good'