After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 670388 - Use AccountsService to retrieve avatar
Use AccountsService to retrieve avatar
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-02-19 11:34 UTC by Marc-Andre Lureau
Modified: 2016-03-31 13:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use AccountsService to retrieve avatar (11.10 KB, patch)
2012-02-19 11:34 UTC, Marc-Andre Lureau
reviewed Details | Review
Use AccountsService to retrieve avatar (11.08 KB, patch)
2012-02-19 16:34 UTC, Marc-Andre Lureau
none Details | Review
Use AccountsService to retrieve avatar (11.08 KB, patch)
2012-02-19 16:51 UTC, Marc-Andre Lureau
none Details | Review
Use fdo.Accounts service to retrive avatar (4.45 KB, patch)
2012-02-24 14:34 UTC, Marc-Andre Lureau
none Details | Review
Use fdo.Accounts service to retrive avatar (5.01 KB, patch)
2012-02-24 22:12 UTC, Zeeshan Ali
committed Details | Review

Description Marc-Andre Lureau 2012-02-19 11:34:57 UTC
This is the method used by GNOME Shell. The previous method is not so
reliable.
Comment 1 Marc-Andre Lureau 2012-02-19 11:34:59 UTC
Created attachment 207973 [details] [review]
Use AccountsService to retrieve avatar
Comment 2 Zeeshan Ali 2012-02-19 15:22:32 UTC
Review of attachment 207973 [details] [review]:

Looks good. Please rebase on master so I can test it before saying ACK. Also please don't forget to push the vapi to vala as well, if not done already.
Comment 3 Marc-Andre Lureau 2012-02-19 16:34:21 UTC
Created attachment 207993 [details] [review]
Use AccountsService to retrieve avatar

This is the method used by GNOME Shell. The previous method is not so
reliable.
Comment 4 Marc-Andre Lureau 2012-02-19 16:36:41 UTC
I try to push the binding in upstream first, filed a bug earlier today. If they refuse it, I'll propose it in vala.
Comment 5 Marc-Andre Lureau 2012-02-19 16:51:23 UTC
Created attachment 207995 [details] [review]
Use AccountsService to retrieve avatar

This is the method used by GNOME Shell. The previous method is not so
reliable.
Comment 6 Marc-Andre Lureau 2012-02-24 14:34:49 UTC
Created attachment 208354 [details] [review]
Use fdo.Accounts service to retrive avatar

We use avatar-default when setting up the UI, then we query Accounts
and replace it.  I couldn't find how the unattended installer was
making use of it. Perhaps it's something still on the todo list
Comment 7 Zeeshan Ali 2012-02-24 20:40:45 UTC
Review of attachment 208354 [details] [review]:

Looks good otherwse, i'll test and then ack :)

::: src/unattended-installer.vala
@@ -175,0 +175,11 @@
+        avatar.show_all ();
+
+        accounts.FindUserByName.begin (Environment.get_user_name (), (obj, result) => {
... 8 more ...

I'd prefer providing some context to log output: warning ("Failed to fetch user information: %s", error.message);
Comment 8 Zeeshan Ali 2012-02-24 22:12:08 UTC
Created attachment 208374 [details] [review]
Use fdo.Accounts service to retrive avatar

We use avatar-default when setting up the UI, then we query Accounts
and replace it.  I couldn't find how the unattended installer was
making use of it. Perhaps it's something still on the todo list

Reviewed and modified by Zeeshan Ali (Khattak) <zeeshanak@gnome.org>.
Comment 9 Zeeshan Ali 2012-02-24 22:15:22 UTC
So I rebased, tested and then modified your last patch. Let me know what you think of it.
Comment 10 Marc-Andre Lureau 2012-02-25 00:02:04 UTC
Review of attachment 208374 [details] [review]:

ack
Comment 11 Zeeshan Ali 2012-02-25 01:15:08 UTC
Comment on attachment 208374 [details] [review]
Use fdo.Accounts service to retrive avatar

Attachment 208374 [details] pushed as d304b1c - Use fdo.Accounts service to retrive avatar
Comment 12 Marc-Andre Lureau 2012-03-09 14:23:27 UTC
fixed in git