Merge lp:~mandel/ubuntuone-client/notification-center-support into lp:ubuntuone-client
| Status: | Rejected |
|---|---|
| Rejected by: | dobey on 2013-08-02 |
| Proposed branch: | lp:~mandel/ubuntuone-client/notification-center-support |
| Merge into: | lp:ubuntuone-client |
| Diff against target: |
351 lines (+309/-0) 6 files modified
tests/platform/notification/test_darwin.py (+150/-0) ubuntuone/platform/filesystem_notifications/monitor/darwin/fsevents_client.py (+1/-0) ubuntuone/platform/notification/__init__.py (+3/-0) ubuntuone/platform/notification/darwin/__init__.py (+53/-0) ubuntuone/platform/notification/darwin/growl.py (+53/-0) ubuntuone/platform/notification/darwin/notification_center.py (+49/-0) |
| To merge this branch: | bzr merge lp:~mandel/ubuntuone-client/notification-center-support |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Mike McCracken (community) | Needs Fixing on 2012-08-31 | ||
| dobey (community) | 2012-08-31 | Needs Fixing on 2012-08-31 | |
|
Review via email:
|
|||
Commit Message
- Added support for the notification center and growl (LP: #1044315).
Description of the Change
- Added support for the notification center and growl (LP: #1044315).
The following dependencies have been added which are probably no in your system:
http://
https:/
You can test it IRL by starting sd and adding a big file to the Ubuntu One folder, you should see a notificaiton.
- 1308. By Manuel de la Peña on 2012-08-31
-
Compare ints no strings.
- 1309. By Manuel de la Peña on 2012-08-31
-
Do not use growl all the time.
- 1310. By Manuel de la Peña on 2012-08-31
-
Do not duplicate strings.
| Manuel de la Peña (mandel) wrote : | # |
Images of how it looks:
Growl support: http://
Notification center support: http://
The proper icon is missing because we have to discuss its locations in the fs once the app has been packaged.
| dobey (dobey) wrote : | # |
This does need to pass the icon argument on to the upstream API calls though, where applicable. And perhaps a comment stating it is ignored for pync because the API doesn't accept it as an argument.
| Mike McCracken (mikemc) wrote : | # |
A couple of issues:
- gntp won't work if growl isn't installed. It only talks to an existing growl, so we'll get tracebacks on 10.6 and 10.7 for lots of people…
- pync depends on terminal-notifier, which is a separate .app that calls NSNotification Center.
pync downloads that if it can't find it in a hard-coded spot, which is kind of awkward. we can put terminal-notifier there, but we'll have to strip out the apple-copyrighted Terminal.icns, which is in the terminal-notifier app for some reason.
We should probably look at using PyObjC, which would let us either directly call NSNotificationC
Also, as of 1.3 or so, Growl doesn't need to install anything to show notifications - that was an annoying issue previously.
here's the description from the Growl 2.0 API readme:
1. Growl.app is installed, and the user has configured growl to NOT use NC
▪ Notifications work as before. Notification tickets are sent to the Growl.app which displays them and performs actions and displays notifications as configured by the user
2. Growl.app is installed, and the user has configured Growl.app to use NC
▪ Growl.framework detects this state from within the app and notifications are sent directly to NC from the app's process. Additionally, notification tickets are sent to growl which performs any associated actions. Growl.app displays nothing.
3. Growl.app is not installed
▪ Growl.framework detects this state from within the app and notifications are sent directly to NC from the app's process. Nothing else is done.
Unmerged revisions
- 1310. By Manuel de la Peña on 2012-08-31
-
Do not duplicate strings.
- 1309. By Manuel de la Peña on 2012-08-31
-
Do not use growl all the time.
- 1308. By Manuel de la Peña on 2012-08-31
-
Compare ints no strings.
- 1307. By Manuel de la Peña on 2012-08-31
-
Added support for growl in older versions. Added tests.
- 1306. By Manuel de la Peña on 2012-08-30
-
Do call notify.
- 1305. By Manuel de la Peña on 2012-08-30
-
Added support for the os x 10.8 notification center.


+APPLICATION_NAME = 'Ubuntu One Client'
We shouldn't duplicate this string in multiple places. Also, I think this should probably just be 'Ubuntu One'.
Also, what do these 2 notifications actually look like? Can you provide screen shots of them?