Cannot start gnome-terminal (or x-terminal-emulator) because of gconf error

save as ~/bin/mygterm

#!/bin/sh
eval `dbus-launch --sh-syntax --exit-with-session`
/usr/lib/libgconf2-4/gconfd-2&
if [ -z "$DISPLAY" ]; then
  DISPLAY=:0
  export DISPLAY
fi

title="`whoami`@`uname -n`"
cmd="gnome-terminal --disable-factory --sm-client-disable --window --title \"$title\""
# open six tabs
tab_count=5
i=0
while [ $i -lt $tab_count ]
do
  i=`expr $i + 1`
  cmd="${cmd} --tab --title \"${title}\""
done

eval $cmd < /dev/null > /dev/null 2>&1 &

$ chmod a+x ~/bin/mygterm
$ mygterm


ref
https://bugs.launchpad.net/ubuntu/+source/gconf2/+bug/328575