Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # caldav.provider - install to /usr/share/accounts/providers
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE provider>
- <provider version="1.0" id="caldav">
- <name>CalDAV</name>
- <description>CalDAV Sync Provider</description>
- <icon>image://theme/icon-m-sync</icon>
- </provider>
- # caldav-yahoo.service - install to /usr/share/accounts/services
- <?xml version="1.0" encoding="UTF-8" ?>
- <service id="caldav-yahoo">
- <type>sync</type>
- <name>Yahoo! Calendar</name>
- <icon>image://theme/icon-m-sync</icon>
- <provider>caldav</provider>
- <template>
- <setting name="sync_profile">caldav-sync</setting>
- <group name="auth">
- <setting name="method">password</setting>
- <setting name="mechanism">password</setting>
- </group>
- </template>
- </service>
- # create an account (first zypper in libaccounts-glib-tools)
- # $ ag-tool list-services # force reloading provider/service files
- # $ ag-tool create-account caldav testcaldav disable
- # find out what the ACCOUNT_ID of the account is
- # $ ag-tool list-accounts
- # manually create a per-account sync profile for that account:
- # caldav-sync-ACCOUNT_ID.xml - install to /home/nemo/.cache/msyncd/sync/
- <?xml version="1.0" encoding="UTF-8"?>
- <profile name="caldav-sync" type="sync" >
- <key name="destinationtype" value="online"/>
- <key name="enabled" value="true"/>
- <key name="hidden" value="true"/>
- <key name="use_accounts" value="true"/>
- <key name="displayname" value="testcaldav"/>
- <key name="accountid" value="ACCOUNT_ID"/>
- <key name="remote_server_address" value="https://caldav.calendar.yahoo.com"/>
- <key name="account_service_name" value="caldav-yahoo"/>
- <!--
- Hack the caldav plugin code to read these keys and use them.
- On device, we store these credentials into an Identity associated
- with the Account, but ag-tool doesn't allow creating credentials,
- so for testing purposes, you can just hack the caldav plugin code
- to get it from here, instead of doing signon with the account.
- -->
- <key name="user_name" value="YOUR_USER_NAME"/>
- <key name="password" value="YOUR_PASSWORD"/>
- <profile type="client" name="caldav">
- <key value="two-way" name="Sync Direction"/>
- <key value="caldav" name="Sync Protocol"/>
- <key value="HTTP" name="Sync Transport"/>
- <key value="prefer remote" name="conflictpolicy" />
- </profile>
- </profile>
- # trigger a sync with that profile
- # $ dbus-send --session --type=method_call --print-reply --dest=com.meego.msyncd /synchronizer com.meego.msyncd.startSync string:'caldav-sync-ACCOUNT_ID'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement