Document Viewer – Evince (로딩속도 문제 해결)

Published on

elementary OS의 Document viewer는 pdf 읽을때 사용하며, 기본적으로 Evince가 설치되어 있다. 

처음 OS설치후, PDF 읽을때 로딩속도에 문제가 있다면, AppArmor의 문제인 경우가 많다. 


먼저 Terminal에서 아무 pdf나 evince로 읽어보자 

$ evince /Users/onesixx/Documents/ISLR_Sixth_Printing.pdf
(evince:8162): Gtk-WARNING **: Attempting to read the recently used resources file at '/Users/onesixx/.local/share/recently-used.xbel', 
                                                          but the parser failed: Failed to open file '/Users/onesixx/.local/share/recently-used.xbel': Permission denied.

(evince:8162): GVFS-WARNING **: can't init metadata tree /Users/onesixx/.local/share/gvfs-metadata/home: open: Permission denied

** (evince:8162): WARNING **: Error setting file metadata: can't open metadata tree


위 와 같은 에러가 발생할 경우,   /var/log/kern.log 에서 아래 내용이 있는지 확인해 보자

$ sudo tail /var/log/kern.log
Feb 6 21:38:25 sixxEOS kernel: [ 6405.985713] audit: type=1400 audit(1486384705.307:382): apparmor="DENIED" operation="open" profile="/usr/bin/evince" name="/Users/onesixx/.local/share/gvfs-metadata/home" pid=8232 comm="pool" requested_mask="r" denied_mask="r" fsuid=1001 ouid=1001

경우 1>  AppArmor가 홈 디렉토리를 찾지 못하는 경우

sudo vim /etc/apparmor.d/tunables/home

1.  해당 파일 수정 – 21번째 줄 

@{HOMEDIRS}=/Users/onesixx/ /home/ 

2. apparmor restart

$ sudo /etc/init.d/apparmor restart


경우 2> nimf 관련 설정 누락

$ evince /Users/onesixx/Documents/ISLR_Sixth_Printing.pdf
(evince:9203): nimf-CRITICAL **: nimf-client.c:290: nimf_client_constructed: Could not connect: Permission denied

(evince:9203): GLib-GIO-CRITICAL **: g_socket_connection_get_socket: assertion 'G_IS_SOCKET_CONNECTION (connection)' failed

(evince:9203): nimf-WARNING **: socket is closed

1. 해당 파일 수정 – 15번째 줄 뒤 추가

$ sudo subl usr.bin.evince

 #include <abstractions/nimf>

2. apparmor restart

$ sudo /etc/init.d/apparmor restart


Categories: Ubuntu


Blog Owner

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x