I never need my user name to be shown on the desktop as I am the only one to use my computer. I'd prefer if there would be something like a shutdown icon instead of the user name to open the session menu. How to achieve this in XUbuntu 11.10?
You can remove the session menu and add an item called 'Action Button' instead. Per default, it will display the usual xfce log-out menu (same as the main menu item).
If this is too pristine, you can add a custom launcher and add the various commands supported by xfce4-session-logout: (excerpt from
-l, --logout Log out without displaying the logout dialog -h, --halt Halt without displaying the logout dialog -r, --reboot Reboot without displaying the logout dialog -s, --suspend Suspend without displaying the logout dialog --hibernate Hibernate without displaying the logout dialog -f, --fast Log out quickly; don't save the session
N.b.: This is from xubuntu 11.04, should still work in 11.10.
Since Xubuntu 14.04, the Session Menu has been removed from panel and replaced by log out button in the Whisker Menu. The session menu can be easily restored by adding "Action Buttons" to the panel. But the item doesn't have any option to hide just the user name.
This answer will explain how to create the Session Menu without the user name by using "Launcher" in Xfce panel. Xubuntu users who missed the Session Menu will find this answer useful.
The Launcher will now appear and behave similar to the Session Menu, except for the arrow button is seen inside button and no separators. Another difference is, Launcher will always allow "Switch User" menu regardless of single or multiuser host system. This action doesn't switch directly to other user but returns to login screen (Same behaviour as "Switch Users" in Whisker Menu).
Above steps are not perfect. There are trivial issues when using launchers, but these can be improved by workarounds.
Xubuntu by default show images on buttons and in menus. User can disable the option "Show images in menus" in Appearance > Settings > Menus and Buttons. This will hide the icon in the menu all together, which includes application menu, context menu and panel menu.
Else try to add other icons for the remaining launchers to make spacing equal, but the menu will appear unnatural due to wide spacing.
Unlike Action Buttons, Launcher has no obvious way to show the confirmation dialog. This may be solved by assigning command each action with helper dialog in Zenity or configuring relevant key in GSettings, if any. I couldn't find any straightforward solution in this matter.
Above all, I didn't find any serious caveats while using the Session Menu that has been created using Launcher. The substitute menu works as expected and could be improved by modifying the command to change the behaviour.
Tested working in Xubuntu 14.04 (Xfce 4.10) and Xubuntu 16.04 (Xfce 4.12). Screenshots were taken using Xfce Screenshot and Shutter, arranged and color to alpha in GIMP, then added annotation using built-in editor in Shutter.