[PATCH] BUG 167388 inconsistency in ~/.kde4/share/config/trashrc
Tobias Koenig
tokoe at kde.org
Wed Sep 2 10:09:20 BST 2009
On Wed, Sep 02, 2009 at 02:52:20PM +0800, "??????(Peter Pan)" wrote:
> Hi, all
Hej,
> When look into BUG 167388, I find that plasma-desktop and dolphin use
> kio_trash to deal with trash, and class TrashImpl is responsible to keep
> trashrc consistent.
> But if more than one kio_trash are created, inconsistency may occur,
> because TrashImpl doesn't make sure whether the config file is the
> latest before reading or writing.
>
> ReparseConfiguration is expensive, but I can't find better way now.
Take a look at kdebase/runtime/ktrash/kinterprocesslock.(h|cpp), this
class allows exclusive access to a resource for multiple application
instances. We use it already to serialize access of multiple kio_trash
instances on the $TRASHDIR/metadata file.
Ciao,
Tobias
--
Separate politics from religion and economy!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090902/cfe7d947/attachment.sig>
More information about the kde-core-devel
mailing list