All the high score in Mines, Same and Mahjong (possibly all other as well) save scores properly but the user name is always wrong since gnome 2.6.0 All the scores belong to the user "unknown". (not that big a deal:) but still looks like a bug) Reproducible: Always Steps to Reproduce: 1. play a gnome game (eg gnome mines) 2. win the game (very important!) 3. go see the high scores Expected Results: My user name should have been in the chart I have this bug on three boxes all running gnome 2.6+ (various versions) on various 2.6 kernels. I have noticed this bug in January or February but it hasn't been fixed since.
This happens to me, also on Gnometris.
well could you maybe find out why ?
I'm currently rebuilding gnome-games in my ~/ to see if I get the same problems. I specified CFLAGS="-g -Wall" during the ./configure. I found that there's a libgnome call to handle all the high score so I'm afraid the problem is more likely to be in there.
Here is the call made in gnome-games-2.6.2/same-gnome/same-gnome.c:326 http://developer.gnome.org/doc/API/2.0/libgnome/libgnome-gnome-score.html#gnome-score-log It's directly handled by libgnome. That's as far as I could go tonight. If anyone cares to help me find what's beneath libgnome (sounds scary :) ), I'd appreciate it.
Mine lists my name just fine. Have you set your real name under your user account correctly? (usermod -c "My Name" <username>)
Yes it fixed it, but you can't expect everyone to actually put their name in the Comment field. (It doesn't say "real name" but "comment") Moreover it requires root privileges to do it. Shouldn't it default to the "basic" username if the comment field is empty? It used to work that way in gnome 2.4. Looks like an ultra minor regression :) I changed the summary from 'gnome games save scores using user "unknown"' to 'libgnome only uses comment field in /etc/passwd to save username in gnome-games'. Perhaps it's a behavior that could be changed. R
Yes it fixed it, but you can't expect everyone to actually put their name in the Comment field. (It doesn't say "real name" but "comment") Moreover it requires root privileges to do it. Shouldn't it default to the "basic" username if the comment field is empty? It used to work that way in gnome 2.4. Looks like an ultra minor regression :) I changed the summary from 'gnome games save scores using user "unknown"' to 'libgnome only uses comment field in /etc/passwd to save username in gnome-games'. Perhaps it's a behavior that could be changed. Rémi
Sorry for not noticing this earlier, gentoo's bugzilla doesn't have a great interface for tracking gnome-games bugs.... The odd part of this bug is it's been here since '99, but most people didn't notice it (or say something about it) until some time last month. It'll be handled upstream, either in libgnome during GNOME-2.9, or when all of the code for high scores gets moved into gnome-games, also probably during GNOME-2.9 development. Yes, it is scary. Currently, libgnome's scores returns an untranslated string when it doesn't find a Real Name for the user: "Unknown" You don't need root privs, just use chfn (...assuming this works fine in gentoo). http://bugs.gnome.org/show_bug.cgi?id=149204 http://bugs.gnome.org/show_bug.cgi?id=149270
Thanks Richard for pointing those two bug reports out. In the mean time, couldn't we include the patch in portage for gnome-games-2.6.2-r1 or something like that? The patch is less than 1Ko R
Thanks Richard for pointing those two bug reports out. In the mean time, couldn't we include the patch in portage for gnome-games-2.6.2-r1 or something like that? The patch is less than 1Ko Rémi
This will be fixed through libgnome for GNOME 2.10
yep, sounds good