summaryrefslogtreecommitdiff
path: root/games/kslide/files/patch-cintro.cpp
blob: c6b1db880191bec89869540b36835c9ccee251ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- kslide/cintro.cpp.orig	Fri Jan 23 17:50:42 2004
+++ kslide/cintro.cpp	Fri Jan 23 18:23:19 2004
@@ -18,6 +18,10 @@
 #include "cintro.h"
 #include "score.h"
 
+#include <stdlib.h>
+#include <sys/types.h>
+#include <pwd.h>
+
 #include <qpainter.h>
 #include <qfont.h>
 #include <kapp.h>
@@ -86,7 +90,7 @@
   playername->hide();
   KConfig *config = kapp->config();
   config->setGroup("Player");
-  playername->setText(config->readEntry("playername",QString(cuserid(NULL))));
+  playername->setText(config->readEntry("playername",QString(getpwuid(geteuid())->pw_name)));
   playername->selectAll();
 
   setMouseTracking(true);