当前位置: 首页>>技术教程>>正文


什么是文件:C:\ nppdf32Log \ debuglog.txt

,

问题描述

在我更新到12.04后,我的主目录中出现一个名为C:\nppdf32Log\debuglog.txt的文件。该文件的内容如下:

NPP_Initialize : called
NPP_GetValue is called
NPP_SetWindow : called for instance 920c0e28
Window from browser - 77594625
NPP_SetWindow : called for instance 920c0e28
Window from browser - 77594625
NPP_SetWindow : called for instance 920c0e28
Window from browser - 77594625
NPP_NewStream : called for instance 920c0e28, stream 913403b0, URL http://www.xxxxxx.com/attachments/soft/CDGM%20Optical%20Glass%20Catalog.pdf, stream size 36177984, seekable 1
NPP_Write : called for instance 920c0e28, stream 913403b0, offset = 0, length = 16384, streamlength = 36177984
Trying for window attributes
Trying for query tree
NPP_Write : called for instance 920c0e28, stream 913403b0, offset = 16384, length = 16384, streamlength = 36177984
Trying for window attributes
Trying for query tree ......

看起来这个文件与Firefox有关,究竟是什么问题?

最佳解决思路

以下是我使用Tom提供的有用链接找到的内容:

nppdf32.so is the actual browser plug-in for enabling Adobe Reader PDF-support in Firefox.

There seems to be a bug in the version 9.5.1 of the plugin creating the “C:\nppdf32Log\debuglog.txt” in the working-directory where Firefox was started. This will normally be the user’s home directory if Firefox is started graphically. If you start it from the command-line the “C:\nppdf32Log\debuglog.txt” file will be created in the directory where you type firefox. There can be multiple such logfiles on your system if the PDF plugin has been started using different working directories.

次佳解决思路

如果您不能等待下一次更新,但愿意进行破解,则可以在插件目录中编辑nppdf32.so,以用./.nppdf32Log.debuglog.txt替换C:\ nppdf32Log \ debuglog.txt该文件仍将被创建但将被隐藏。我用vim:set bin,搜索debuglog,然后使用替换模式。

由于这是一个二进制文件,因此使用HEX编辑器是个好主意。只小心编辑3个字符C:\./.,第二个\.,没有别的。

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/809.html,未经允许,请勿转载。