fast-user-switch-applet (and now indicator applet!) does not parse gecos information correctly.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Indicator Applet |
Won't Fix
|
High
|
Unassigned |
Bug Description
I originally submitted this bug for fast-user-
I'm using Karmic and likewise-open5, but I suspect any non-local
authentication method would exhibit the same behavior.
Taking my gecos information as an example, the applet only displays my last
name. The reason for this is in the source code, for some unknown reason it
regexes and contrains at a common. Using the following perl script displays
my actual gecos info:
[code]
#!/usr/bin/env perl
use User::pwent qw(:FIELDS);
my $username = shift or die("No username given!");
my $user = getpwnam($username) or die("No such user $username");
print "Username: ".$user->name."\n";
print "Real Name: ".$user-
print "Home: ".$user->dir."\n";
print "uid: ".$user->uid."\n";
print "gid: ".$user->gid."\n";
print "passwd: ".$user-
[/code]
Pass it my username (shadwickt) and I get this:
Username: shadwickt
Real Name: Shadwick, Tony
Home: /home/shadwickt
uid: 1283484728
gid: 1283457537
passwd: x
Since the format is lastname, firstname - the applet just shows "Shadwick".
I've confirmed this by downloading the sources and removing the relevant
regex, but unfortunately all of the "nicer" features of the applet go away.
The shutdown/reboot, pidgin status, etc.
I'm not sure why it constrains against a comma, but it is certainly an easy,
albeit cosmetic, fix.
Plan in the future is to use the glib function g_get_real_name, could
you check to see if that works?