summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ChangeLog1
-rw-r--r--noncore/apps/opie-console/consoleconfigwidget.cpp6
2 files changed, 4 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 4722f9b..1c4cfe4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,8 +22,9 @@
22 * #1550 - Browse for alarm sound start in QPEDIR/sounds/ (zecke) 22 * #1550 - Browse for alarm sound start in QPEDIR/sounds/ (zecke)
23 * #1554 - Fixed Opie-Console name in .desktop file (mickeyl) 23 * #1554 - Fixed Opie-Console name in .desktop file (mickeyl)
24 * #1556 - Start to look for sound files in /opt/QtPalmtop/sounds (zecke) 24 * #1556 - Start to look for sound files in /opt/QtPalmtop/sounds (zecke)
25 * #1558 - Fixed opie-login breaking opie startup (mickeyl) 25 * #1558 - Fixed opie-login breaking opie startup (mickeyl)
26 * #1560 - Fixed Opie-Console picking up the wrong shell (bluelightning)
26 * #1570 - Confirmation needed befor Restore a backup and overwrite local data (ar) 27 * #1570 - Confirmation needed befor Restore a backup and overwrite local data (ar)
27 * #1599 - Security - change recommendation for opie-multiauth to opie-securityplugin (gints) 28 * #1599 - Security - change recommendation for opie-multiauth to opie-securityplugin (gints)
28 * #1604 - Checkbook crashed on startup (drw) 29 * #1604 - Checkbook crashed on startup (drw)
29 * #1608 - Addressbook crashed after search, which may caused by not initialzed member variable (eilers) 30 * #1608 - Addressbook crashed after search, which may caused by not initialzed member variable (eilers)
diff --git a/noncore/apps/opie-console/consoleconfigwidget.cpp b/noncore/apps/opie-console/consoleconfigwidget.cpp
index a6ad8d2..27d9a3f 100644
--- a/noncore/apps/opie-console/consoleconfigwidget.cpp
+++ b/noncore/apps/opie-console/consoleconfigwidget.cpp
@@ -7,9 +7,9 @@
7#include <stdio.h> 7#include <stdio.h>
8 8
9#include <pwd.h> 9#include <pwd.h>
10#include <sys/types.h> 10#include <sys/types.h>
11 11#include <unistd.h>
12 12
13#include "consoleconfigwidget.h" 13#include "consoleconfigwidget.h"
14 14
15ConsoleConfigWidget::ConsoleConfigWidget( const QString& name, QWidget* parent, 15ConsoleConfigWidget::ConsoleConfigWidget( const QString& name, QWidget* parent,
@@ -70,14 +70,14 @@ void ConsoleConfigWidget::load( const Profile& prof ) {
70 * default to the users default shell 70 * default to the users default shell
71 */ 71 */
72 struct passwd *ent = 0; 72 struct passwd *ent = 0;
73 char *shell = "/bin/sh"; 73 char *shell = "/bin/sh";
74 int uid = getuid();
74 75
75 while ( (ent = getpwent()) != 0 ) { 76 ent = getpwuid(uid);
76 if (ent->pw_shell != "") { 77 if (ent->pw_shell != "") {
77 shell = ent->pw_shell; 78 shell = ent->pw_shell;
78 } 79 }
79 }
80 80
81 m_cmd->setText(prof.readEntry("Command", shell )); 81 m_cmd->setText(prof.readEntry("Command", shell ));
82 int envcount = prof.readNumEntry("EnvVars", 0); 82 int envcount = prof.readNumEntry("EnvVars", 0);
83 for (int i=0; i<envcount; i++) { 83 for (int i=0; i<envcount; i++) {