aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-17 16:50:28 -0500
committerTed Gould <ted@gould.cx>2010-03-17 16:50:28 -0500
commite879ad7063226f453d362dbc03f2a654570ea7ce (patch)
treec2262e350b614ca8f7961a70ebbef0f6f619e57e /src/session-service.c
parentd2e52c5334e119b40e12c9f3c03593737ef7bac8 (diff)
downloadayatana-indicator-session-e879ad7063226f453d362dbc03f2a654570ea7ce.tar.gz
ayatana-indicator-session-e879ad7063226f453d362dbc03f2a654570ea7ce.tar.bz2
ayatana-indicator-session-e879ad7063226f453d362dbc03f2a654570ea7ce.zip
Handling the file URIs
Diffstat (limited to 'src/session-service.c')
-rw-r--r--src/session-service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/session-service.c b/src/session-service.c
index 97ed013..d2c2c74 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -590,8 +590,8 @@ rebuild_items (DbusmenuMenuitem *root,
dbusmenu_menuitem_property_set (mi, USER_ITEM_PROP_NAME, user->real_name);
}
dbusmenu_menuitem_property_set_bool (mi, USER_ITEM_PROP_LOGGED_IN, user->sessions != NULL);
- if (user->icon_url != NULL && user->icon_url[0] != '\0') {
- dbusmenu_menuitem_property_set(mi, USER_ITEM_PROP_ICON, user->icon_url);
+ if (user->icon_url != NULL && user->icon_url[0] != '\0' && g_str_has_prefix(user->icon_url, "file://")) {
+ dbusmenu_menuitem_property_set(mi, USER_ITEM_PROP_ICON, user->icon_url + strlen("file://"));
} else {
dbusmenu_menuitem_property_set(mi, USER_ITEM_PROP_ICON, USER_ITEM_ICON_DEFAULT);
}