diff options
author | Ted Gould <ted@gould.cx> | 2010-03-02 11:33:51 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-02 11:33:51 -0600 |
commit | 86a394ae84f4c09c0bfc7b7136bcc7e88ca04bc5 (patch) | |
tree | 9034681ffc8a9fe06efc3009377b563012d53135 | |
parent | b8dfba9eadfb0150e673620f940ddd6d83ebccff (diff) | |
download | ayatana-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
-rw-r--r-- | src/session-service.c | 5 |
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); |