← Back to team overview

ubuntu-phone team mailing list archive

Re: ownCloud app.

 

Hi Vincent, whats the reason for exporting the display with the bash script? I.e., I'm able to sync both contacts and calendar without it - is it just for using cron?

Thanks,

Mitchell

On Saturday, 4 July 2015 7:34:23 PM AEST, Vincent wrote:
Okay it was a little bit harder than that!

Create a bash script in /home/phablet:

#!/bin/sh
export DISPLAY=:0.0
export DBUS_SESSION_BUS_ADDRESS=$(ps -u phablet e | grep -Eo 'dbus-daemon.*address=unix:abstract=/tmp/dbus-[A-Za-z0-9]{10}' | tail -c35)
syncevolution owncloud contacts
syncevolution owncloud calendar
exit 0


chmod +x /home/phablet/syncevolution.sh
sudo crontab -u phablet -e


0 0,6,12,18 * * * sh /home/phablet/syncevolution.sh >/dev/null 2>&1


*Vincent*
http://influence-pc.fr/

Le 02/07/2015 23:21, Vincent a écrit :
Yes, and you can do that with:
|sudo mount /dev/loop0 / -o remount,rw|

*Vincent*
http://influence-pc.fr/

Le 02/07/2015 20:16, Sam Bull a écrit :
On Thursday, 2 July 2015 17:31:23 BST, Vincent wrote:
I agree with you, but know that crontab is installed on your device and should work as excepted for the automatic side.

No, it requires making the filesystem writable to edit the crontab.







--
Sent using Dekko from my Ubuntu device


Follow ups

References