https://bugs.kde.org/show_bug.cgi?id=414396

David Edmundson <k...@davidedmundson.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WAITINGFORINFO
             Status|CONFIRMED                   |NEEDSINFO

--- Comment #27 from David Edmundson <k...@davidedmundson.co.uk> ---
As for the permissions error, this is a guess that verifying, but:

    QFile file(filePath);
    if(!file.exists()) {
        // If we are creating the config file, ensure it is world-readable: if
        // we don't do that, KConfig will create a file which is only readable
        // by root
        file.open(QIODevice::WriteOnly);
        file.close();
        file.setPermissions(QFile::ReadOwner | QFile::WriteOwner |
QFile::ReadGroup | QFile::ReadOther);
    }




If the folder doesn't exist, this will do nothing, as you can't touch a file in
a non-existing dir.

We then end up relying on kconfig's code to make the folder, which hits the
problem that this comment says will happen.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to