Группа :: Графические оболочки/KDE
Пакет: kde4base
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: kdebase-4.0.3-userpasswd.patch
Скачать
Скачать
--- kdebase-4.0.3/apps/kdepasswd/kcm/main.cpp~ 2008-03-27 23:34:10 +0300
+++ kdebase-4.0.3/apps/kdepasswd/kcm/main.cpp 2008-04-14 16:45:36 +0400
@@ -108,19 +108,19 @@ KCMUserAccount::KCMUserAccount( QWidget
void KCMUserAccount::slotChangePassword()
{
- QString bin = KGlobal::dirs()->findExe("kdepasswd");
+ QString bin = KGlobal::dirs()->findExe("userpasswd");
if ( bin.isNull() )
{
- kDebug() << "kcm_useraccount: kdepasswd was not found.";
+ kDebug() << "kcm_useraccount: userpasswd was not found.";
KMessageBox::sorry ( this, i18n( "A program error occurred: the internal "
- "program 'kdepasswd' could not be found. You will "
+ "program 'userpasswd' could not be found. You will "
"not be able to change your password."));
_mw->btnChangePassword->setEnabled(false);
return;
}
QStringList lst;
- lst << _ku->loginName();
+// lst << _ku->loginName();
QProcess::startDetached(bin,lst);
}
--- kdebase-4.0.3/apps/kdepasswd/kcm/main.cpp~ 2008-04-14 16:50:11 +0400
+++ kdebase-4.0.3/apps/kdepasswd/kcm/main.cpp 2008-04-14 19:19:21 +0400
@@ -220,7 +220,7 @@ void KCMUserAccount::save()
}
ChfnProcess *proc = new ChfnProcess();
- int ret = proc->exec(dlg.password().toAscii() , _mw->leRealname->text().toAscii() );
+ int ret = proc->exec(dlg.password().toAscii() , _mw->leRealname->text().toUtf8().data() );
if ( ret )
{
if ( ret == ChfnProcess::PasswordError )