From kde-commits Tue Aug 17 19:55:46 2004 From: Waldo Bastian Date: Tue, 17 Aug 2004 19:55:46 +0000 To: kde-commits Subject: kdeextragear-3/kiosktool Message-Id: <20040817195546.0CBBA9A84 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=109277255311102 CVS commit by waba: Warn about the dangers of /etc/skel/.kde M +24 -0 kioskgui.cpp 1.27 M +2 -0 kioskgui.h 1.12 --- kdeextragear-3/kiosktool/kioskgui.cpp #1.26:1.27 @@ -97,4 +97,6 @@ KioskGui::KioskGui() selectPage(PAGE_PROFILE_SELECTION); + + QTimer::singleShot(0, this, SLOT(slotCheckEtcSkel())); } @@ -105,4 +107,26 @@ KioskGui::~KioskGui() } +void KioskGui::slotCheckEtcSkel() +{ + QString etcSkel = "/etc/skel/.kde"; + KioskSync skelDir; + skelDir.addDir(etcSkel, KURL()); + QStringList skelFiles = skelDir.listFiles(); + if (!skelFiles.isEmpty()) + { + KMessageBox::informationList(this, + i18n("Your system is configured to copy files from %1 " + "to the personal KDE settings directory of new users.

" + "This may interfere with the correct operation of user profiles.

" + "Unless a setting has been locked down, settings that have been copied " + "to the personal KDE settings directory of a user will override " + "a default setting configured in a profile.

" + "The following files were found under %2:").arg(etcSkel).arg(etcSkel), + skelFiles, + QString::null, + "etc_skel_warning"); + } +} + void KioskGui::setWidgetBackground(QWidget *w) { --- kdeextragear-3/kiosktool/kioskgui.h #1.11:1.12 @@ -70,4 +70,6 @@ public slots: void uploadCurrentProfile(); + void slotCheckEtcSkel(); + protected: void updateActions();