diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-03-30 12:49:15 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-03-30 12:49:15 -0400 |
commit | 8b4596b8d75035fc9bf81f6ffc6a6f1327e27541 (patch) | |
tree | dc0c493f7e6eaa3723ad25557d785c665518327a /src/user.c | |
parent | 69b526a6cd4c078732068de2ba393cf9242a404b (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.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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); |