execdesktop 287 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. TBB_START_PROG="$(grep '^X-TorBrowser-ExecShell' $1 | tail -1 | sed 's/^X-TorBrowser-ExecShell=//' | sed 's/%.//')"
  3. shift
  4. if [ "$#" -ge 1 ]
  5. then
  6. echo "Launching '${TBB_START_PROG} $@'..."
  7. else
  8. echo "Launching '${TBB_START_PROG}'..."
  9. fi
  10. ${TBB_START_PROG} "$@"