aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/session-service.c')
-rw-r--r--src/session-service.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/session-service.c b/src/session-service.c
index e89a9a0..3cbb29c 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -481,7 +481,9 @@ rebuild_items (DbusmenuMenuitem *root,
ensure_gconf_client ();
switch_menuitem = dbusmenu_menuitem_new ();
- dbusmenu_menuitem_property_set (switch_menuitem, DBUSMENU_MENUITEM_PROP_LABEL, _("Switch User..."));
+ gchar * switchlabel = g_strdup_printf(_("Switch from %s..."), g_get_user_name());
+ dbusmenu_menuitem_property_set (switch_menuitem, DBUSMENU_MENUITEM_PROP_LABEL, switchlabel);
+ g_free(switchlabel);
dbusmenu_menuitem_child_append (root, switch_menuitem);
g_signal_connect (G_OBJECT (switch_menuitem), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK (activate_new_session), NULL);