1 2 3 4 5 6
#!/bin/bash # Set TMPDIR to be under the user's default Downloads dir export TMPDIR=$(xdg-user-dir DOWNLOAD)/firefox.tmp exec "$@"