For some specific reasons I need to run evince from command line as root, this is because certain files on my system as so protected that I can only access them via root.
Since by default is not possible to get the file by running the following command logged as root
evince filename.pdf
sometime ago I found the following workround, logged into terminal as root I can open the file with
xhost local:root
DISPLAY=$DISPLAY evince filename.pdf
what happens now is that the above command still work, but it takes like 1minute to open the file, whereas if do
sudo evince filename.pdf
it does it immediately.
Any explanation?