main
 1#!/usr/bin/env bash
 2# Launch a selected Firefox profile without relying on the legacy profiles.ini.
 3set -euo pipefail
 4
 5case "${1:-}" in
 6  work) profile="$HOME/.mozilla/firefox/default" ;;
 7  personal) profile="$HOME/.mozilla/firefox/paT2ehcS.Profile 1" ;;
 8  *)
 9    echo "usage: $(basename "$0") {work|personal}" >&2
10    exit 2
11    ;;
12esac
13
14if [[ ! -d "$profile" ]]; then
15  echo "Firefox profile does not exist: $profile" >&2
16  exit 1
17fi
18
19exec firefox -no-remote -profile "$profile"