Unable to run programs as root with sudo in KDE

From thelinuxwiki
Jump to: navigation, search

Errors

sudo program_name
cannot open display :0

Solution

copy .Xauthority from current user home dir to /root/