我正在安装 Pencil 并收到以下错误:xulrunner: not found.XULRunner 是 Pencil 的要求。那么如何安装 XULRunner 及其依赖项呢?
我创建了一个简单的 xulrunner 应用程序,从命令行调用时效果很好。
clain@desktop:~$ xulrunner /home/clain/myapp/application.ini
Run Code Online (Sandbox Code Playgroud)
问题是我需要在应用程序运行时保持终端打开。有没有办法可以使用桌面快捷方式/桌面条目启动应用程序?
我曾尝试制作如下所示的桌面条目文件,但在运行它时出现错误“无效的桌面条目文件:'/home/clain/Desktop/myapp'”
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=MyApp
GenericName=MyApp XulRunner
Exec=xulrunner /home/clain/myapp/application.ini
TryExec=xulrunner /home/clain/myapp/application.ini
Terminal=false
Type=Application
MimeType=text/xml;application/xhtml+xml;application/x-javascript;application/x-php;application/x-java;text/x-javascript;text/html;text/plain;
Name[en_IN]=MyApp
Comment[en_IN]=Standalone MyApp SSB
Run Code Online (Sandbox Code Playgroud)
我在 Lubuntu 14.04 LTS (Trusty Tahr) 上运行
Pencil 既可以作为 Firefox 扩展运行,也可以作为带有 XULRunner 1.9.2 的独立应用程序运行。
尝试安装 XULRunner:
rich@rich-laptop:~/apps/pencil$ sudo apt-get install xulrunner-1.9.2
[sudo] password for rich:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package xulrunner-1.9.2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'xulrunner-1.9.2' has no installation candidate
Run Code Online (Sandbox Code Playgroud)
因此,我尝试通过单击Pencil 主页上的安装按钮使用 Firefox 安装它,并且 .xpi 文件已被存档管理器下载并打开。
有任何想法吗?
我安装了Tizen SDK 2.0,它在 64 位 Ubuntu 12.10 上使用 Eclipse 3.7.1 作为 IDE。尝试创建 Tizen Web 项目时,我从 Eclipse 收到以下错误消息:
未处理的事件循环异常 没有更多句柄 [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]
问题是 Eclipse 被配置为使用 Xulrunner 作为 IDE 内的无头浏览器。Xulrunner 不再位于 Ubuntu 12.10 的存储库中,因此 Eclipse 无法找到这些库。