如何在 Debian Jessie 上的 Gnome 3 中集成最新的 Firefox如何在 Debian Jessie 上的 Gnome 3 中集成最新的 Firefox如何在 Debian Jessie 上的 Gnome 3 中集成最新的 Firefox如何在 Debian Jessie 上的 Gnome 3 中集成最新的 Firefox
  • 文章
  • 正则表达式
    • 工具
  • 登录
找到的结果: {phrase} (显示: {results_count} 共: {results_count_total})
显示: {results_count} 共: {results_count_total}

加载更多搜索结果...

搜索范围
模糊匹配
搜索标题
搜索内容
发表 admin at 2025年2月28日
类别
  • 未分类
标签

如何在 Debian Jessie 上的 Gnome 3 中集成最新的 Firefox

在此页

  1. Firefox 安装
  2. 在 Gnome 桌面中集成 Firefox
  3. 安装 Firefox 更新
  4. 现在...

Debian Jessie、Firefox 和 Gnome 听起来像是奇怪的三人组,但 Jessie 可以将 Firefox 作为原生 Gnome 3 应用程序运行。你为什么要这样做? Debian 已经配备了一个非常好的网络浏览器 --- Iceweasel,一个重新命名的 Firefox 版本。为什么?因为更新。 Firefox 比 Iceweasel 更频繁地更新。如果您想要最新的功能、最新的错误修复和安全更新,那么您需要 Firefox。

火狐安装

首先从 Mozilla 站点下载 Firefox。

确保您拥有适合您要安装它的计算机的正确版本(32 位或 64 位)。

我们现在将在 /opt 中安装 Firefox。 (可选包所在的位置。)

sudo mv Downloads/firefox*bz2 /opt
cd /opt
sudo tar -xvjf firefox*bz2

您现在将拥有一个名为 firefox 的目录。关闭 Iceweasel 并手动启动 Firefox:

firefox/firefox

(您可能会看到一条关于 GLib 的奇怪消息,但您可以忽略它。)

好的?好的!如果没有,请查看 Firefox 帮助站点。

当我们在这里时,检查 Firefox 在哪里保留其主图标:

find firefox |grep mozicon

大概是

firefox/browser/icons/mozicon128.png

在 Gnome 桌面中集成 Firefox

要让 Gnome 看到 Firefox,它必须在 /usr/share/applications 中有一个 firefox.desktop 文件。我们将利用 Iceweasel 基本上是戴着滑稽帽子的 Firefox 这一事实。 iceweasel.desktop 文件将作为我们的模板。

cd /usr/share/applications
sudo cp iceweasel.desktop firefox.desktop

编辑 firefox.desktop,将 Iceweasel 更改为 Firefox。好吧,也许不是全部。您可能想先去掉不适合您的语言。文件突然变小了!

[Desktop Entry]
Encoding=UTF-8
Name=Iceweasel
Comment=Browse the World Wide Web
GenericName=Web Browser
X-GNOME-FullName=Iceweasel Web Browser
Exec=iceweasel %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=iceweasel
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupWMClass=Iceweasel
StartupNotify=true

这是我们最感兴趣的两行:

Exec=iceweasel %u
Icon=iceweasel

将它们更改为

Exec=/opt/firefox/firefox %u
Icon=/opt/firefox/browser/icons/mozicon128.png

重新启动计算机,以便 Gnome 知道更改。您现在应该能够在搜索框中找到 Firefox,将其添加到 dork 并像普通 Gnome 应用程序一样运行它。如果愿意,您仍然可以运行 Iceweasel。 (只是不要同时两者。)

安装 Firefox 更新

检查菜单帮助 |关于火狐。当有更新时,它会说更新可用。关闭 Firefox 并使用 root 权限手动重启它:

sudo /opt/firefox/firefox

将下载新版本。完成后,单击重新启动 Firefox 进行更新。检查菜单帮助 |关于 Firefox,您将确信 Firefox 是最新的。关闭这个 Firefox 实例并正常使用它直到下一次更新。您的 Web 浏览器是犯罪分子最喜欢的目标。当只有 Root 可以对 Firefox 进行更改时,您会安全得多。

现在...

既然您了解了桌面文件……您还想让哪些其他应用程序支持 Gnome?

©2015-2025 艾丽卡 support@alaica.com