weixin_39715652 2020-11-30 02:31
浏览 0

Cannot load user stencils since resource:app results in error

From psychol....com on November 22, 2011 10:38:08

What steps will reproduce the problem? 1. Try to load any of the stencils from the homepage What is the expected output? What do you see instead? Expected that the stencils are loaded and added to the program. result is: In the bottom bar an error is displayed: 0x80004005 NS_ERROR_FAILURE What version of the product are you using? On what operating system? Version 1.3.2, Win 7 x64, Standalone XULRunner Please provide any additional information below. After failing to load any stencils I tried to copy them to the directory myself. However this did not work either. After some testing in the collectionManager.js I found out that the line


if (Util.isXulrunner()) {
    stencilDir = properties.get("resource:app", Components.interfaces.nsIFile);

inside the getUserStencilDirectory function throws an error (0x80004005 NS_ERROR_FAILURE). Querying the properties object with has("resource:app") returns false. I tried googling the issue but found nothing that could help.

Original issue: http://code.google.com/p/evoluspencil/issues/detail?id=373

该提问来源于开源项目:prikhi/pencil

  • 写回答

11条回答 默认 最新

  • weixin_39715652 2020-11-30 02:31
    关注

    From psychol....com on November 22, 2011 08:01:06

    Note: A temporary workaround is to manually add the collections inside the \app\content\pencil\definition\collectionManager.js file after the system stencils (around line 100). (You need to extract the zip files first to a location, preferrably inside the pencil directory structure.)

    评论

报告相同问题?