summaryrefslogtreecommitdiff
path: root/src/user.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-03-30 12:49:15 -0400
committerMatthias Clasen <mclasen@redhat.com>2010-03-30 12:49:15 -0400
commit8b4596b8d75035fc9bf81f6ffc6a6f1327e27541 (patch)
treedc0c493f7e6eaa3723ad25557d785c665518327a /src/user.c
parent69b526a6cd4c078732068de2ba393cf9242a404b (diff)
Support ~/.face icons
This lets people keep their icons when upgrading to a system with AccountsService.
Diffstat (limited to 'src/user.c')
-rw-r--r--src/user.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/user.c b/src/user.c
index 5889ff3..0eb3232 100644
--- a/src/user.c
+++ b/src/user.c
@@ -182,7 +182,14 @@ user_get_property (GObject *object,
g_value_set_string (value, user->location);
break;
case PROP_ICON_FILE:
- g_value_set_string (value, user->icon_file);
+ if (user->icon_file)
+ g_value_set_string (value, user->icon_file);
+ else {
+ gchar *icon_file;
+
+ icon_file = g_build_filename (user->home_dir, ".face", NULL);
+ g_value_take_string (value, icon_file);
+ }
break;
case PROP_LOGIN_FREQUENCY:
g_value_set_uint64 (value, user->login_frequency);