虽说acroread是个好东西,但是在打开pdf几秒后总是自动退出呢
在其aur网页下找到了这么一解决办法:
打开终端输入
sudo unshare -n sudo -u ${USER} ACRO_ALLOW_SUDO=1 acroread
只是暂时性的,无法“一劳永逸”呢,另一个办法:
echo $'#include <unistd.h>\n#include <stdio.h>\nint main(){char u[99];sprintf(u,"-u#%d",(int)getuid());return execl("/usr/bin/unshare","","-n","sudo",u,"ACRO_ALLOW_SUDO=1","/usr/bin/acroread.bin",NULL);}\n'|gcc -x c - -o acroread
sudo mv /usr/bin/acroread{,.bin}
sudo mv acroread /usr/bin
sudo chown root:root /usr/bin/acroread
sudo chmod 4755 /usr/bin/acroread
不过这样就无法打开特定的pdf了,需要重新选取文件,但是也无所谓啦可以安心看pdf了