[Env]:
Fedora 15
This time I notice this err. message on Idea log:
1 2 3 4 |
[37383535] WARN - ution.rmi.RemoteProcessSupport - log4j:WARN Please initialize the log4j system properly. [37383535] WARN - ution.rmi.RemoteProcessSupport - log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. [37415636] WARN - ewvfs.persistent.RefreshWorker - [+] fs=LocalFileSystem dir=file:///home/suse name=C:\nppdf32Log\debuglog.txt [37424317] WARN - ewvfs.persistent.RefreshWorker - [+] fs=LocalFileSystem dir=file:///home/suse name=C:\nppdf32Log\debuglog.txt |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
~> pwd /home/suse ~> cat C\:\\nppdf32Log\\debuglog.txt NPP_GetValue is called NPP_GetValue is called ~> locate nppdf /home/suse/C:\nppdf32Log\debuglog.txt /opt/Adobe/Reader9/Browser/intellinux/nppdf.so /usr/lib/mozilla/plugins/nppdf.so |
Well, it’s a classic issue on Acroread.
Notice here:
Bug #986841 Debug log created by Adobe Reader browser plugin (nppdf.so)
There’s no fix for even we do not have new Acroread version for linux.
But w/r provided in comment #21:
Quote:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# Here's a script to automate the fix from comment 3. # Run as, e.g. "sudo ./fix_nppdf.py /opt/Adobe/Reader9/Browser/intellinux/nppdf.so". #! /usr/bin/python3 import mmap, sys target = br'C:\nppdf32Log\debuglog.txt' replacement = br'/dev/null' replacement += b'\0' * (len(target) - len(replacement)) with open(sys.argv[1], 'r+') as f: m = mmap.mmap(f.fileno(), 0) offset = m.find(target) assert offset != -1 m[offset:offset+len(target)] = replacement |