1

我在 Firefox 3.6.13 上试用了这个 XUL 教程。

本教程中的示例扩展旨在查找文件。这是我的manifest文件:

内容 findfile 文件:///home/darthshak/Programs/firefox/findfile/content/
皮肤 findfile classic/1.0 file:///home/darthshak/Programs/firefox/findfile/skin/
locale findfile en-US file:///home/darthshak/Programs/firefox/findfile/locale/

该文件位于/usr/lib/firefox-3.6.13/chrome并称为findfile.manifest.

/home/darthshak/Programs/firefox/findfile/content/findfile.xul我放了这个示例 XUL 代码:

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

<window id="findfile-window" title="Find files" orient="horizontal"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

    <button id="find-button" label="Find"/>
    <button id="cancel-button" label="Cancel"/>
</window>

现在,当我执行以下命令时,该死的东西永远不会运行:

firefox -chrome chrome://findfile/content/findfile.xul

终端上只输出一个PID,什么也没有出现。

我下载了ChromeList扩展程序,令我懊恼的是,我发现了以下目录结构:

findfile/
    content/
        content/
            findfile.xul
        skin/
        locale/
    skin/
        content/
            findfile.xul
        skin/
        locale/
    locale/
        content/
            findfile.xul
        skin/
        locale/

此外,当我findfile.xul使用“在新窗口中打开”选项启动时,什么也没有出现。但是,它仅在我选择“在新选项卡中打开”或“启动”时才有效。

我尝试了很多东西(显然,除了可以解决这个问题的正确方法),包括重命名.xul文件、更改findfile.manifest文件等等。奇怪的是,当我在chrome目录中添加清单文件时/home/darthshak/.mozilla/,清单甚至没有在ChromeList.

4

0 回答 0