install calendar sync only when Calendar app installed

Bug #1373566 reported by Bill Filler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Calendar App
Fix Released
Critical
Renato Araujo Oliveira Filho
sync-monitor
Fix Released
Critical
Renato Araujo Oliveira Filho

Bug Description

Currently the Google Calendar sync service file is installed by sync-monitor-uoa package. This should be removed. Instead we need to only install the service file when the Calendar app is installed and remove it when the Calendar app is uninstalled.

To do this, we need to make a click hook package that will do the work when it detects the package install/uninstall.

Click hooks are here to look at an example:
/usr/share/click/hooks

According to Jamie this should be a "user" click hook not a "system" click hook.

Related branches

Bill Filler (bfiller)
Changed in sync-monitor:
importance: Undecided → Critical
assignee: nobody → Renato Araujo Oliveira Filho (renatofilho)
tags: added: rtm14 touch-2014-10-02
Revision history for this message
Bill Filler (bfiller) wrote :

Also, the uninstall click hook should prompt the user if they want to delete all the Calendar data

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

A good example of click account provider can be found on this MR:

https://code.launchpad.net/~dpm/reminders-app/account-click/+merge/230768

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

@bfiller

There is no way to check if the hook is running during the installation or uninstall.

Bill Filler (bfiller)
Changed in sync-monitor:
status: New → Confirmed
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

Ok now sync-monitor will install the base files and the calendar app will install the final "application" file necessary to enable the option in online accounts.

Changed in sync-monitor:
status: Confirmed → In Progress
Changed in ubuntu-calendar-app:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Renato Araujo Oliveira Filho (renatofilho)
Bill Filler (bfiller)
tags: added: touch-2014-10-09
removed: touch-2014-10-02
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-calendar-app at revision None, scheduled for release in ubuntu-calendar-app, milestone rtm14

Changed in ubuntu-calendar-app:
status: In Progress → Fix Committed
Bill Filler (bfiller)
Changed in sync-monitor:
status: In Progress → Fix Released
Changed in ubuntu-calendar-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.