summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);