[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [PATCH] BUG 167388 inconsistency in ~/.kde4/share/config/trashrc
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2009-09-02 9:09:20
Message-ID: 20090902090920.GA18934 () ghostdog ! localnet
[Download RAW message or body]


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!

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic