Skip to content

Sandbox a browser awindow within a new data dir

Sandbox a browser window within a new data directory (datadir)

#!/bin/bash

export KOAD_IO_BROWSER_SANDBOX=unacceptable
export BROWSER_DATA_DIRS=~/.koad-io/profiles/browser/chromium

chromium --user-data-dir=$BROWSER_DATA_DIRS/$KOAD_IO_BROWSER_SANDBOX --class=$KOAD_IO_BROWSER_SANDBOX-chrome-window $*  >/dev/null 2>/dev/null & disown
#!/bin/bash

export KOAD_IO_BROWSER_SANDBOX=unacceptable
export BROWSER_DATA_DIRS=~/.koad-io/profiles/browser/brave

brave-browser --user-data-dir=$BROWSER_DATA_DIRS/$KOAD_IO_BROWSER_SANDBOX --class=$KOAD_IO_BROWSER_SANDBOX-brave-window $*  >/dev/null 2>/dev/null & disown
Back to top