chrome/launch
2016-12-14 10:25:24 +01:00

10 lines
306 B
Bash

#!/usr/bin/env sh
mkdir /data $HOME/.pki/nssdb $HOME/.local 2>/dev/null
chown -Rh $USER:$USER /data $HOME/.pki/nssdb $HOME/.local
# Befriend with grsecurity patched kernel
setfattr -n user.pax.flags -v m /opt/google/chrome/chrome
su -s /bin/sh -c "/usr/bin/google-chrome --user-data-dir=/data $@" $USER