Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
set -x
case $1 in
setup)
echo SETUP
rm -rf .gnome2 .cache .config
mkdir -p ~/.gnome2/keyrings/
echo default >~/.gnome2/keyrings/default
cat >~/.gnome2/keyrings/default.keyring <<EOF
[keyring]
display-name=default
lock-on-idle=false
lock-after=false
EOF
# gnome-keyring-daemon expects .cache to exist.
mkdir ~/.cache
mkdir ~/.config
;;
run)
echo RUN
export XDG_RUNTIME_DIR=`mktemp -d`
gconftool-2 --set --type=string /apps/activesyncd/accounts/${EXCHANGE_MAILADDR}/username "$EXCHANGE_USER"
gconftool-2 --set --type=string /apps/activesyncd/accounts/${EXCHANGE_MAILADDR}/serverUri "$EXCHANGE_URL"
gconftool-2 --set --type=string /apps/activesyncd/accounts/${EXCHANGE_MAILADDR}/password "$EXCHANGE_PASSWORD"
#find ~/
#EAS_DEBUG_FILE=activesyncd.log EAS_DEBUG=5 /usr/libexec/activesyncd & SYNCEVOLUTION_DEBUG=1 syncevolution --daemon=no --print-databases username=${EXCHANGE_MAILADDR} backend=eas-events
#cat ~/.gnome2/keyrings/default.keyring
#cat ~/.gconf/apps/activesyncd/accounts/patrick.ohly\@eas-testing.syncevolution.org/%gconf.xml
#grep password activesyncd.log
;;
*)
echo GO
./go.sh setup
./dbus-session.sh bash ./go.sh run
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment