You can't run that command when you are as root. You can only run that command as a user. To restart the ui when you are root use the command above. To restart when you have JUST opened terminal and havent typed in ANYTHING Type this Code: killall sysuid
killall sysuid