View Single Post
Posts: 1 | Thanked: 0 times | Joined on Nov 2012 @ Norway
#10
On one side, it's pretty bad that things does not work as they should, on the other side, that the sync function is that easily available from the command line, should make it pretty easy to add in two functions that I have been missing from the present calendar sync:

* Make different sync timing depending on if you are connected through wifi or mobile net. (maybe even if you are in your home net or roaming) (I guess it is possible for a program to see how the unit is connected)
* Sync to several calendars: I have not looked into it, but I would guess there are apis for saving and restoring gconf-info. Save each of the different syncs you want to set up (eg syncing private google calendar to one calendar on the n900, syncing work calendar to another on the n900) and automatically switching between the two setups, something like

gconf-restore googlesync
do-sync
gconf-restore worksync
do-sync

(where the do-sync is the dbus-send command tobru has further up here)

seems like gconftool-2 --dump /apps/activesync > activesync.xml should save the data and a later gconftool-2 --restore activesync.xml then restores it - in all cases useful just to have a backup in case I should accidentally touch the MfE settings... (warning, I have not testet this, but the xml looks sane and a quick grep shows that the password is stored encrypted (no idea how strong the encryption is or where the password for decryption is stored...)

Last edited by MortenSi; 2012-11-07 at 07:45.