Rename kdepasswd -> tdepasswd

pull/2/head
Slávek Banko 11 years ago
parent 08390bda6c
commit 763b290f01

@ -153,7 +153,7 @@ option( BUILD_KLIPPER "Build klipper" ${BUILD_ALL} )
option( BUILD_KMENUEDIT "Build kmenuedit" ${BUILD_ALL} ) option( BUILD_KMENUEDIT "Build kmenuedit" ${BUILD_ALL} )
option( BUILD_TDEPRINT "Build tdeprint" ${BUILD_ALL} ) option( BUILD_TDEPRINT "Build tdeprint" ${BUILD_ALL} )
option( BUILD_KPERSONALIZER "Build kpersonalizer" ${BUILD_ALL} ) option( BUILD_KPERSONALIZER "Build kpersonalizer" ${BUILD_ALL} )
option( BUILD_KDEPASSWD "Build kdepasswd" ${BUILD_ALL} ) option( BUILD_TDEPASSWD "Build tdepasswd" ${BUILD_ALL} )
option( BUILD_KTIP "Build ktip" ${BUILD_ALL} ) option( BUILD_KTIP "Build ktip" ${BUILD_ALL} )
option( BUILD_KDEEJECT "Build kdeeject" ${BUILD_ALL} ) option( BUILD_KDEEJECT "Build kdeeject" ${BUILD_ALL} )
option( BUILD_KDIALOG "Build kdialog" ${BUILD_ALL} ) option( BUILD_KDIALOG "Build kdialog" ${BUILD_ALL} )
@ -232,7 +232,7 @@ tde_conditional_add_subdirectory( BUILD_KLIPPER klipper )
tde_conditional_add_subdirectory( BUILD_KMENUEDIT kmenuedit ) tde_conditional_add_subdirectory( BUILD_KMENUEDIT kmenuedit )
tde_conditional_add_subdirectory( BUILD_TDEPRINT tdeprint ) tde_conditional_add_subdirectory( BUILD_TDEPRINT tdeprint )
tde_conditional_add_subdirectory( BUILD_KPERSONALIZER kpersonalizer ) tde_conditional_add_subdirectory( BUILD_KPERSONALIZER kpersonalizer )
tde_conditional_add_subdirectory( BUILD_KDEPASSWD kdepasswd ) tde_conditional_add_subdirectory( BUILD_TDEPASSWD tdepasswd )
tde_conditional_add_subdirectory( BUILD_KTIP ktip ) tde_conditional_add_subdirectory( BUILD_KTIP ktip )
tde_conditional_add_subdirectory( BUILD_KDEEJECT kdeeject ) tde_conditional_add_subdirectory( BUILD_KDEEJECT kdeeject )
tde_conditional_add_subdirectory( BUILD_KDIALOG kdialog ) tde_conditional_add_subdirectory( BUILD_KDIALOG kdialog )

@ -114,7 +114,7 @@ libraries. Here is an overview of the directories:
The KDE session manager (saves program status on login, restarts The KDE session manager (saves program status on login, restarts
those program at the next login). those program at the next login).
* kdepasswd * tdepasswd
A KDE frontend for passwd. Also contains the "Password & User Information" KCM. A KDE frontend for passwd. Also contains the "Password & User Information" KCM.
* ksplashml * ksplashml

@ -1,17 +0,0 @@
SUBDIRS = kcm
bin_PROGRAMS = kdepasswd
kdepasswd_SOURCES = kdepasswd.cpp passwd.cpp passwddlg.cpp
kdepasswd_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -ltdetexteditor
kdepasswd_LDADD = $(LIB_KIO)
METASOURCES = AUTO
AM_CPPFLAGS= -I$(top_srcdir)/libkonq $(all_includes)
noinst_HEADERS = passwd.h passwddlg.h
xdg_apps_DATA = kdepasswd.desktop
messages:
$(XGETTEXT) $(kdepasswd_SOURCES) -o $(podir)/kdepasswd.pot

@ -1,3 +0,0 @@
kdepasswd: A KDE front end to the Unix passwd command.
Please report bugs to Geert Jansen <jansen@kde.org>

@ -25,13 +25,13 @@ link_directories(
##### other data ################################ ##### other data ################################
install( FILES kdepasswd.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) install( FILES tdepasswd.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
##### kdepasswd (executable) #################### ##### tdepasswd (executable) ####################
tde_add_executable( kdepasswd AUTOMOC tde_add_executable( tdepasswd AUTOMOC
SOURCES kdepasswd.cpp passwd.cpp passwddlg.cpp SOURCES tdepasswd.cpp passwd.cpp passwddlg.cpp
LINK tdeio-shared LINK tdeio-shared
DESTINATION ${BIN_INSTALL_DIR} DESTINATION ${BIN_INSTALL_DIR}
) )

@ -1,4 +1,4 @@
kdepasswd - a KDE front end to passwd tdepasswd - a KDE front end to passwd
Copyright (c) 1999,2000 by Geert Jansen <jansen@kde.org> Copyright (c) 1999,2000 by Geert Jansen <jansen@kde.org>

@ -0,0 +1,17 @@
SUBDIRS = kcm
bin_PROGRAMS = tdepasswd
tdepasswd_SOURCES = tdepasswd.cpp passwd.cpp passwddlg.cpp
tdepasswd_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -ltdetexteditor
tdepasswd_LDADD = $(LIB_KIO)
METASOURCES = AUTO
AM_CPPFLAGS= -I$(top_srcdir)/libkonq $(all_includes)
noinst_HEADERS = passwd.h passwddlg.h
xdg_apps_DATA = tdepasswd.desktop
messages:
$(XGETTEXT) $(tdepasswd_SOURCES) -o $(podir)/tdepasswd.pot

@ -0,0 +1,3 @@
tdepasswd: A KDE front end to the Unix passwd command.
Please report bugs to Geert Jansen <jansen@kde.org>

@ -3,7 +3,7 @@ Thu Jan 29 00:34:49 CET 2004
Frans Englich <frans.englich@telia.com> Frans Englich <frans.englich@telia.com>
KCM useraccount is a merge of the former tdebase/kcontrol/email KCM useraccount is a merge of the former tdebase/kcontrol/email
and tdeutils/kdepasswd/userinfo/. They existed in KDE 3.1, at least. and tdeutils/tdepasswd/userinfo/. They existed in KDE 3.1, at least.
As a bonus, on top of saving the stuff with KEMailSettings it tries As a bonus, on top of saving the stuff with KEMailSettings it tries
also to save the realname to /etc/passwd. This is done via chfn, wrapped also to save the realname to /etc/passwd. This is done via chfn, wrapped

@ -10,7 +10,7 @@
/** /**
* @file Change a user's 'finger' information, specifically their full name. * @file Change a user's 'finger' information, specifically their full name.
* derived from kdepasswd. * derived from tdepasswd.
*/ */
#include <unistd.h> #include <unistd.h>

@ -108,12 +108,12 @@ KCMUserAccount::KCMUserAccount( TQWidget *parent, const char *name,
void KCMUserAccount::slotChangePassword() void KCMUserAccount::slotChangePassword()
{ {
TDEProcess *proc = new TDEProcess; TDEProcess *proc = new TDEProcess;
TQString bin = TDEGlobal::dirs()->findExe("kdepasswd"); TQString bin = TDEGlobal::dirs()->findExe("tdepasswd");
if ( !bin ) if ( !bin )
{ {
kdDebug() << "kcm_useraccount: kdepasswd was not found." << endl; kdDebug() << "kcm_useraccount: tdepasswd was not found." << endl;
KMessageBox::sorry ( this, i18n( "A program error occurred: the internal " KMessageBox::sorry ( this, i18n( "A program error occurred: the internal "
"program 'kdepasswd' could not be found. You will " "program 'tdepasswd' could not be found. You will "
"not be able to change your password.")); "not be able to change your password."));
_mw->btnChangePassword->setEnabled(false); _mw->btnChangePassword->setEnabled(false);

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

@ -13,7 +13,7 @@
#include "passwddlg.h" #include "passwddlg.h"
KDEpasswd1Dialog::KDEpasswd1Dialog() TDEpasswd1Dialog::TDEpasswd1Dialog()
: KPasswordDialog(Password, false, 0) : KPasswordDialog(Password, false, 0)
{ {
setCaption(i18n("Change Password")); setCaption(i18n("Change Password"));
@ -21,12 +21,12 @@ KDEpasswd1Dialog::KDEpasswd1Dialog()
} }
KDEpasswd1Dialog::~KDEpasswd1Dialog() TDEpasswd1Dialog::~TDEpasswd1Dialog()
{ {
} }
bool KDEpasswd1Dialog::checkPassword(const char *password) bool TDEpasswd1Dialog::checkPassword(const char *password)
{ {
PasswdProcess proc(0); PasswdProcess proc(0);
@ -66,9 +66,9 @@ bool KDEpasswd1Dialog::checkPassword(const char *password)
// static // static
int KDEpasswd1Dialog::getPassword(TQCString &password) int TDEpasswd1Dialog::getPassword(TQCString &password)
{ {
KDEpasswd1Dialog *dlg = new KDEpasswd1Dialog(); TDEpasswd1Dialog *dlg = new TDEpasswd1Dialog();
int res = dlg->exec(); int res = dlg->exec();
if (res == Accepted) if (res == Accepted)
password = dlg->password(); password = dlg->password();
@ -78,7 +78,7 @@ int KDEpasswd1Dialog::getPassword(TQCString &password)
KDEpasswd2Dialog::KDEpasswd2Dialog(const char *oldpass, TQCString user) TDEpasswd2Dialog::TDEpasswd2Dialog(const char *oldpass, TQCString user)
: KPasswordDialog(NewPassword, false, 0) : KPasswordDialog(NewPassword, false, 0)
{ {
m_Pass = oldpass; m_Pass = oldpass;
@ -92,12 +92,12 @@ KDEpasswd2Dialog::KDEpasswd2Dialog(const char *oldpass, TQCString user)
} }
KDEpasswd2Dialog::~KDEpasswd2Dialog() TDEpasswd2Dialog::~TDEpasswd2Dialog()
{ {
} }
bool KDEpasswd2Dialog::checkPassword(const char *password) bool TDEpasswd2Dialog::checkPassword(const char *password)
{ {
PasswdProcess proc(m_User); PasswdProcess proc(m_User);

@ -11,14 +11,14 @@
#include <kpassdlg.h> #include <kpassdlg.h>
class KDEpasswd1Dialog class TDEpasswd1Dialog
: public KPasswordDialog : public KPasswordDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
KDEpasswd1Dialog(); TDEpasswd1Dialog();
~KDEpasswd1Dialog(); ~TDEpasswd1Dialog();
static int getPassword(TQCString &password); static int getPassword(TQCString &password);
@ -27,14 +27,14 @@ protected:
}; };
class KDEpasswd2Dialog class TDEpasswd2Dialog
: public KPasswordDialog : public KPasswordDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
KDEpasswd2Dialog(const char *oldpass, TQCString user); TDEpasswd2Dialog(const char *oldpass, TQCString user);
~KDEpasswd2Dialog(); ~TDEpasswd2Dialog();
protected: protected:
bool checkPassword(const char *password); bool checkPassword(const char *password);

@ -28,7 +28,7 @@ static TDECmdLineOptions options[] =
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
TDEAboutData aboutData("kdepasswd", I18N_NOOP("TDE passwd"), TDEAboutData aboutData("tdepasswd", I18N_NOOP("TDE passwd"),
VERSION, I18N_NOOP("Changes a UNIX password."), VERSION, I18N_NOOP("Changes a UNIX password."),
TDEAboutData::License_Artistic, "Copyright (c) 2000 Geert Jansen"); TDEAboutData::License_Artistic, "Copyright (c) 2000 Geert Jansen");
aboutData.addAuthor("Geert Jansen", I18N_NOOP("Maintainer"), aboutData.addAuthor("Geert Jansen", I18N_NOOP("Maintainer"),
@ -40,7 +40,7 @@ int main(int argc, char **argv)
if (!KUniqueApplication::start()) { if (!KUniqueApplication::start()) {
kdDebug() << "kdepasswd is already running" << endl; kdDebug() << "tdepasswd is already running" << endl;
return 0; return 0;
} }
@ -54,7 +54,7 @@ int main(int argc, char **argv)
if (args->count()) if (args->count())
user = args->arg(0); user = args->arg(0);
/* You must be able to run "kdepasswd loginName" */ /* You must be able to run "tdepasswd loginName" */
if ( !user.isEmpty() && user!=KUser().loginName().utf8() && !bRoot) if ( !user.isEmpty() && user!=KUser().loginName().utf8() && !bRoot)
{ {
KMessageBox::sorry(0, i18n("You need to be root to change the password of other users.")); KMessageBox::sorry(0, i18n("You need to be root to change the password of other users."));
@ -64,12 +64,12 @@ int main(int argc, char **argv)
TQCString oldpass; TQCString oldpass;
if (!bRoot) if (!bRoot)
{ {
int result = KDEpasswd1Dialog::getPassword(oldpass); int result = TDEpasswd1Dialog::getPassword(oldpass);
if (result != KDEpasswd1Dialog::Accepted) if (result != TDEpasswd1Dialog::Accepted)
return 0; return 0;
} }
KDEpasswd2Dialog *dlg = new KDEpasswd2Dialog(oldpass, user); TDEpasswd2Dialog *dlg = new TDEpasswd2Dialog(oldpass, user);
dlg->exec(); dlg->exec();

@ -1,5 +1,5 @@
[Desktop Entry] [Desktop Entry]
Exec=kdepasswd Exec=tdepasswd
Icon=password Icon=password
Type=Application Type=Application
Categories=Qt;TDE;Settings; Categories=Qt;TDE;Settings;

@ -106,7 +106,7 @@ public:
* - Unlock: tdm unlock dialog (TODO) * - Unlock: tdm unlock dialog (TODO)
* - ChangeTok: tdm password change dialog (TODO) * - ChangeTok: tdm password change dialog (TODO)
* - ExUnlock: kdesktop_lock unlock dialog * - ExUnlock: kdesktop_lock unlock dialog
* - ExChangeTok: kdepasswd password change dialog (TODO) * - ExChangeTok: tdepasswd password change dialog (TODO)
* *
* The Ex* contexts exist within a running session; the talker must know * The Ex* contexts exist within a running session; the talker must know
* how to obtain the currently logged in user (+ domain/realm, etc.) * how to obtain the currently logged in user (+ domain/realm, etc.)

Loading…
Cancel
Save