Merge lp://staging/~chipaca/ubuntuone-client/connect-on-startup-maybe into lp://staging/ubuntuone-client

Proposed by John Lenton
Status: Merged
Approved by: dobey
Approved revision: 467
Merged at revision: not available
Proposed branch: lp://staging/~chipaca/ubuntuone-client/connect-on-startup-maybe
Merge into: lp://staging/ubuntuone-client
Diff against target: 151 lines (+98/-0)
5 files modified
Makefile.am (+1/-0)
bin/ubuntuone-launch (+78/-0)
data/Makefile.am (+6/-0)
data/oauth_registration.d/ubuntuone (+6/-0)
data/ubuntuone-launch.desktop.in (+7/-0)
To merge this branch: bzr merge lp://staging/~chipaca/ubuntuone-client/connect-on-startup-maybe
Reviewer Review Type Date Requested Status
dobey (community) Approve
Joshua Hoover (community) ran branch and verified functionality Approve
Review via email: mp+22542@code.staging.launchpad.net

Commit message

Add autostart wrapper for Ubuntu One start-up on log-in

Description of the change

This adds ubuntuone-launch, the fabled, mythical, connect-my-ubuntuone-on-startup helper.

To post a comment you must log in.
Revision history for this message
dobey (dobey) wrote :

Personally, I would avoid using twisted here, as there's no need for it. The glib main loop would suffice.

However, given that the script is poking at the keyring, you should also add the necessary bits to the data files, so that it gets added to the keyring acl when a token is gotten, to avoid popping up the keyring access when the user logs in. But once the keyring acls data is updated here, I'll approve. :)

review: Needs Fixing
Revision history for this message
John Lenton (chipaca) wrote :

On Wed, Mar 31, 2010 at 03:20:09PM -0000, Rodney Dawes wrote:
> Review: Needs Fixing
> Personally, I would avoid using twisted here, as there's no need for it. The glib main loop would suffice.
>
> However, given that the script is poking at the keyring, you should also add the necessary bits to the data files, so that it gets added to the keyring acl when a token is gotten, to avoid popping up the keyring access when the user logs in. But once the keyring acls data is updated here, I'll approve. :)

fixed, I think :)

465. By John Lenton

fixes as per dobey

466. By John Lenton

added the directory check straight into the .desktop file

Revision history for this message
dobey (dobey) :
review: Approve
Revision history for this message
dobey (dobey) wrote :

Oh. Also, the ubuntuone-launch.desktop.in should have Icon=ubuntuone added to it. :)

review: Needs Fixing
467. By John Lenton

added an icon to the .desktop file

Revision history for this message
Joshua Hoover (joshuahoover) wrote :

Approved. Removed ubuntuone-* packages and then installed John's branch (copying bin/ubuntuone-syncdaemon to /usr/libexec/). Restarted and waited 30 seconds. Ran u1sdtool -s and saw I was connected and syncdaemon was doing its thing. Also did the same test without a u1 token and got the expected results: nothing happens. :)

review: Approve (ran branch and verified functionality)
Revision history for this message
dobey (dobey) :
review: Approve
Revision history for this message
Nicola Larosa (teknico) wrote :

I don't know much about the client's architecture, just a couple Twisted-related comments.

1) Nothing seems to involve Twisted's reactor, are deferreds going to work even without it?

2) I'm not familiar with the idiom of firing a deferred *before* hooking up callbacks and errbacks. It might work, but then why use deferreds at all?

I must be missing something. :-)

468. By John Lenton

and a blank Comment line to make gnome-session-properties prettier

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Hi,

Nicola,

Deferreds should work without the reactor, and in this case the deferred callback/errback is triggered by a dbus reply/error handler.

John,
/me really likes the inlineCallbacks version

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches