Jump to content

seyed.mostafa ziaei

Validating
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. i can solve it in orange pi 5 plus i wrote this script it can use the latest stable firefox and add it to gnome menu #!/bin/bash # Define necessary paths APP_DIR="$HOME/firefox" APP_PATH="$APP_DIR/firefox" ICON_URL="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Firefox_logo%2C_2019.svg/220px-Firefox_logo%2C_2019.svg.png" ICON_PATH="$APP_DIR/firefox.png" DESKTOP_FILE_PATH="$HOME/.local/share/applications/firefox.desktop" PACKAGE_NAME="firefox-deb" # Create necessary directories mkdir -p "$APP_DIR" mkdir -p "$PACKAGE_NAME/usr/local/bin" mkdir -p "$PACKAGE_NAME/usr/share/icons/hicolor/256x256/apps" mkdir -p "$PACKAGE_NAME/usr/share/applications" # Download Firefox tarball (if not already downloaded) if [ ! -f "$HOME/Downloads/firefox-136.0.tar.xz" ]; then wget https://ftp.mozilla.org/pub/firefox/releases/136.0/linux-aarch64/fa/firefox-136.0.tar.xz -P "$HOME/Downloads" fi # Extract Firefox tar -xf "$HOME/Downloads/firefox-136.0.tar.xz" -C "$APP_DIR" # Move Firefox to proper directory cp -r "$APP_DIR/firefox" "$PACKAGE_NAME/usr/local/bin/" # Download Firefox icon wget "$ICON_URL" -O "$PACKAGE_NAME/usr/share/icons/hicolor/256x256/apps/firefox.png" # Create the .desktop file echo "[Desktop Entry] Name=Firefox Comment=Browse the World Wide Web Exec=/usr/local/bin/firefox/firefox %u Icon=$ICON_PATH Terminal=false Type=Application Categories=Network;WebBrowser; MimeType=x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;" > "$PACKAGE_NAME/usr/share/applications/firefox.desktop" # Make the .desktop file executable chmod +x "$PACKAGE_NAME/usr/share/applications/firefox.desktop" # Build the .deb package dpkg-deb --build "$PACKAGE_NAME" # Install the .deb package sudo dpkg -i "$PACKAGE_NAME.deb" # Update GNOME menu sudo update-desktop-database echo "Firefox package has been successfully installed and added to GNOME menu."
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines