[PATCH] Fix 49564 - please review

David Faure dfaure at klaralvdalens-datakonsult.se
Tue Mar 11 10:53:05 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 10 March 2003 20:00, Ravikiran Rajagopal wrote:
> Hello,
>   The following patch fixes bug 49564, which actually has been reported
> atleast 5 times to my knowledge (since KDE 2.0 days!). Thanks to David Faure
> for pointing out that KProcess is safe to use within the KApplication
> constructor. Is it ok to commit? To both branches?
> 
> Ravi
> 
> Index: kapplication.cpp
> ===================================================================
> RCS file: /home/kde/kdelibs/kdecore/kapplication.cpp,v
> retrieving revision 1.572
> diff -u -p -r1.572 kapplication.cpp
> --- kapplication.cpp    5 Mar 2003 04:45:19 -0000       1.572
> +++ kapplication.cpp    10 Mar 2003 18:56:01 -0000
> @@ -671,6 +671,21 @@ void KApplication::init(bool GUIenabled)
> 
>    KConfig* config = KGlobal::config();
>    d->actionRestrictions = config->hasGroup("KDE Action Restrictions" );
> +#ifdef Q_WS_X11
> +  // For brain-dead configurations where the user's local config file is not
> writable.
> +  if (!(d->actionRestrictions) && config->isReadOnly())
> +  {
> +    QString cmdToExec = KStandardDirs::findExe(QString("kdialog"));
> +    if (!cmdToExec.isEmpty())
> +    {
> +      // Make life easier for the translators :-)
> +      QString msgString( i18n("Cannot save options. Please contact your
> systems administrator.") );

Is it possible to be more specific, by telling _which_ directory isn't writable,
when it should?

- -- 
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+bcAR72KcVAmwbhARApLVAJoCsOrP7wfNFcnqKwYbXjE3t3zSGQCfQ+Gb
RCrXHgDy2xhenWPSPxI3e80=
=wNit
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list