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
@@ -14,24 +14,25 @@
14 * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers) 14 * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers)
15 * #1472 - Opie textedit now check for unsaved changes on ESC key (ljp) 15 * #1472 - Opie textedit now check for unsaved changes on ESC key (ljp)
16 * #1474 - Implement GUI for Scrollbars on the Left in Appearance (zecke) 16 * #1474 - Implement GUI for Scrollbars on the Left in Appearance (zecke)
17 * #1482 - Fix double '/' in paths (zecke) 17 * #1482 - Fix double '/' in paths (zecke)
18 * #1536 - Autosave of custom locations in opie backup (ar) 18 * #1536 - Autosave of custom locations in opie backup (ar)
19 * #1539 - Fixed displaying too long path in the delete dialog in opie-eye (zecke) 19 * #1539 - Fixed displaying too long path in the delete dialog in opie-eye (zecke)
20 * #1540 - Implemented deletion of DocLnks in opie-eye (zecke) 20 * #1540 - Implemented deletion of DocLnks in opie-eye (zecke)
21 * #1542 - Fixed Todo crash when priority < 1 or > 5 (drw) 21 * #1542 - Fixed Todo crash when priority < 1 or > 5 (drw)
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)
30 * #1608 - QueryByExampe-Datediff on SQL database did not worked properly (eilers) 31 * #1608 - QueryByExampe-Datediff on SQL database did not worked properly (eilers)
31 * n.a. - Netsystemtime - fixed UI to prevent error dialog from displaying when it shouldn't, get rid of some compiler warnings (drw) 32 * n.a. - Netsystemtime - fixed UI to prevent error dialog from displaying when it shouldn't, get rid of some compiler warnings (drw)
32 * n.a. - PackageManager - fixed where last package in status file was not shown as installed when it should be (drw) 33 * n.a. - PackageManager - fixed where last package in status file was not shown as installed when it should be (drw)
33 * n.a. - PackageManager - fixed bug where lists_dir was not being honored at startup (drw) 34 * n.a. - PackageManager - fixed bug where lists_dir was not being honored at startup (drw)
34 * n.a. - PackageManager - provided default value for lists_dir when none is entered in configuration dialog (drw) 35 * n.a. - PackageManager - provided default value for lists_dir when none is entered in configuration dialog (drw)
35 * n.a. - Launcher Settings - fixed default settings for background in Edit tab dialog (drw) 36 * n.a. - Launcher Settings - fixed default settings for background in Edit tab dialog (drw)
36 * n.a. - OTabWidget - fixed scroll buttons, fix display position of tabs (drw) 37 * n.a. - OTabWidget - fixed scroll buttons, fix display position of tabs (drw)
37 * n.a. - AddressBook - fixed sorting by 'File As' name (drw) 38 * n.a. - AddressBook - fixed sorting by 'File As' name (drw)
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
@@ -1,23 +1,23 @@
1#include <qlabel.h> 1#include <qlabel.h>
2#include <qlayout.h> 2#include <qlayout.h>
3#include <qlineedit.h> 3#include <qlineedit.h>
4#include <qpushbutton.h> 4#include <qpushbutton.h>
5#include <qlistview.h> 5#include <qlistview.h>
6#include <qhbox.h> 6#include <qhbox.h>
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,
16 const char* na ) 16 const char* na )
17 : ProfileDialogConnectionWidget( name, parent, na ) { 17 : ProfileDialogConnectionWidget( name, parent, na ) {
18 m_lay = new QVBoxLayout( this ); 18 m_lay = new QVBoxLayout( this );
19 QLabel *label = new QLabel(tr("Command to execute"), this); 19 QLabel *label = new QLabel(tr("Command to execute"), this);
20 m_lay->addWidget(label); 20 m_lay->addWidget(label);
21 m_cmd = new QLineEdit(this); 21 m_cmd = new QLineEdit(this);
22 m_lay->addWidget(m_cmd); 22 m_lay->addWidget(m_cmd);
23 label = new QLabel(tr("Environment Variables"), this); 23 label = new QLabel(tr("Environment Variables"), this);
@@ -62,30 +62,30 @@ void ConsoleConfigWidget::slotRemove() {
62 } 62 }
63} 63}
64 64
65ConsoleConfigWidget::~ConsoleConfigWidget() { 65ConsoleConfigWidget::~ConsoleConfigWidget() {
66} 66}
67 67
68void ConsoleConfigWidget::load( const Profile& prof ) { 68void ConsoleConfigWidget::load( const Profile& prof ) {
69 /* 69 /*
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++) {
84 QString name = prof.readEntry("Env_Name_" + QString::number(i), ""); 84 QString name = prof.readEntry("Env_Name_" + QString::number(i), "");
85 QString value = prof.readEntry("Env_Value_" + QString::number(i), ""); 85 QString value = prof.readEntry("Env_Value_" + QString::number(i), "");
86 if (!(name.isEmpty() || value.isEmpty())) { 86 if (!(name.isEmpty() || value.isEmpty())) {
87 QListViewItem *item = new QListViewItem(m_env); 87 QListViewItem *item = new QListViewItem(m_env);
88 item->setText(0, name); 88 item->setText(0, name);
89 item->setText(1, value); 89 item->setText(1, value);
90 m_env->insertItem(item); 90 m_env->insertItem(item);
91 } 91 }