aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-02 11:33:51 -0600
committerTed Gould <ted@gould.cx>2010-03-02 11:33:51 -0600
commit86a394ae84f4c09c0bfc7b7136bcc7e88ca04bc5 (patch)
tree9034681ffc8a9fe06efc3009377b563012d53135 /src
parentb8dfba9eadfb0150e673620f940ddd6d83ebccff (diff)
downloadayatana-indicator-session-86a394ae84f4c09c0bfc7b7136bcc7e88ca04bc5.tar.gz
ayatana-indicator-session-86a394ae84f4c09c0bfc7b7136bcc7e88ca04bc5.tar.bz2
ayatana-indicator-session-86a394ae84f4c09c0bfc7b7136bcc7e88ca04bc5.zip
Check the UID to see if it's me
Diffstat (limited to 'src')
-rw-r--r--src/session-service.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/session-service.c b/src/session-service.c
index 289bff8..a2760d1 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -496,6 +496,11 @@ rebuild_items (DbusmenuMenuitem *root,
user->service = service;
+ if (user->uid == getuid()) {
+ /* Hide me from the list */
+ continue;
+ }
+
mi = dbusmenu_menuitem_new ();
dbusmenu_menuitem_property_set (mi, DBUSMENU_MENUITEM_PROP_TYPE, USER_ITEM_TYPE);
dbusmenu_menuitem_property_set (mi, USER_ITEM_PROP_NAME, user->real_name);