Update localised firefox beta on User space
#!/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