Comment 19 for bug 438767

Revision history for this message
ignasi (igp-oenus) wrote : Re: User switcher should allow users to choose which name is shown in the panel.

@Matthew, you're right. The specs are there, people can choose what they want to appear by entering 1 line of code. But I thought Ubuntu was about being user-friendly, and I'm not sure the average ubuntu newbie will never read this bug report. I'm sorry I'm saying this again, Ubuntu is about being user-friendly (...yes, among other things)

You also said that I could fix the bug. I'm probably not that good of a coder but any newbie could use this as a user-friendly work-around.

#!/bin/sh
ans=$(zenity --list --radiolist --title "MeMenu Configuration Tool" \
--text="What would you like to show on the MeMenu?" --column " " \
--column "Value" TRUE "My Username" FALSE "My Real Name" FALSE "Empty")

case "$ans" in
        My\ Username)
        a=1
        ;;

        My\ Real\ Name)
        a=2
        ;;
        Empty)
        a=0
        ;;
esac
gconftool -s /system/indicator/me/display --type int $a

#----END OF SCRIPT

or if someone wants it packaged with a fancy menu entry in Preferences, they can download it here:

http://dl.dropbox.com/u/1405254/memenu-setup_all.deb