PDA

View Full Version : [ubuntu] Evince cannot be launched as root



actionmystique
March 27th, 2014, 06:20 PM
Hello,
On ubuntu 13.10, if I run evince with "gksu evince", I get the following error messages:

** (evince:5860): WARNING **: Could not open X display
No protocol specified
Cannot parse arguments: Cannot open display:

Any suggestion?

bapoumba
March 27th, 2014, 10:08 PM
http://ubuntuforums.org/showthread.php?t=1651832
May be there ?

actionmystique
March 28th, 2014, 10:28 AM
Thanks for the link.
One user suggested the following trick in the thread:
sudo ln -s /etc/apparmor.d/usr.bin.evince /etc/apparmor.d/disable
sudo /etc/init.d/apparmor restart

I don't understand why a symbolic link would solve this case, but it works.

actionmystique
March 28th, 2014, 10:48 AM
A side effect is that the "save current settings as default" does not work anymore, as far as the previously loaded page is concerned.
I cannot find the config file for evince.
Do you know how to solve this?

mc4man
March 28th, 2014, 01:38 PM
I don't understand why a symbolic link would solve this case, but it works.
It 'works' because that link disables apparmor protection of evince from actions/permissions it's not intended for or shouldn't need to work