2010-03-24

Open many chromium different sessions

#!/bin/sh

PARAM="--disable-logging"
PARAM="${PARAM} --disk-cache-dir=/tmp/.${USER}/.cache"
PARAM="${PARAM} --no-referrers"
PARAM="${PARAM} --disable-ipv6"
PARAM="${PARAM} --disable-java"

#PARAM="${PARAM} --user-data-dir=${XDG_CONFIG_HOME}/chromuim-default"
#PARAM="${PARAM} --user-data-dir=${HOME}/.config/chromium-default"
#PARAM="${PARAM} --incognito"
#PARAM="${PARAM} --proxy-server=127.0.0.1:8118"
#PARAM="${PARAM} --"
#PARAM="${PARAM} --"

if [ -d ~/.config/chromium-facebook ]; then
    echo Bye.
    quit
fi

cd ~/.config/chromium-facebook
ls | while read i
do
    exec /usr/lib64/chromium-browser/chrome ${PARAM} --user-data-dir=${HOME}/.config/chromium-facebook/$i &
done

--disk-cache-dir 同 dir 沒關系 --user-data-dir = store:存 extensions / history / etc.

而一氣過開 n 個 chromium / google chrome 亦相當之快。
"firefox + chromium (partial)" + userscripts/extensions

No comments: