sh 在用户空间更新本地化的firefox beta
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 在用户空间更新本地化的firefox beta相关的知识,希望对你有一定的参考价值。
#!/usr/bin/env bash
TARGET=$HOME/.local
mkdir -p /tmp/firefox_beta
cd /tmp/firefox_beta
wget -O firefox-beta.tar.bz2 "https://download.mozilla.org/?product=firefox-beta-latest&os=linux64&lang=es-ES"
tar -C $TARGET -xvf firefox-beta.tar.bz2
DESKTOP_FILE=$HOME/.local/share/applications/firefox-beta.desktop
tee $DESKTOP_FILE <<EOF
[Desktop Entry]
Categories=Network;WebBrowser;
Comment=Definición personalizada para Firefox
Encoding=UTF-8
Exec=$TARGET/firefox/firefox %u
Icon=$TARGET/firefox/browser/icons/mozicon128.png
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
Name=Firefox (User)
Terminal=false
Type=Application
Version=1.0
EOF
以上是关于sh 在用户空间更新本地化的firefox beta的主要内容,如果未能解决你的问题,请参考以下文章
sh Vagrant添加本地更新的centos7图像
centos7 更新Firefox版本
sh 利用coding.net批量更新本地所有仓库
sh Vagrant为libvirt提供商添加本地更新的ubuntu版本
Linux-CentOS 更新Firefox版本
使用 | Firefox 更新通道切换