diff --git a/src/functions/login.sh b/src/functions/login.sh index 973a1e3..e93e9c9 100644 --- a/src/functions/login.sh +++ b/src/functions/login.sh @@ -55,7 +55,7 @@ wx-login(){ wx-stop fi - if [[ -z $USER ]] + if [[ -z $USER || $USER == "root" || $USER == "local" ]] then if [[ -z $SUDO_USER ]] then diff --git a/wx b/wx index c47ceaa..52e2ddd 100755 --- a/wx +++ b/wx @@ -76,7 +76,7 @@ wx-login(){ wx-stop fi - if [[ -z $USER ]] + if [[ -z $USER || $USER == "root" || $USER == "local" ]] then if [[ -z $SUDO_USER ]] then