>>106582810
Desktop you mean. This is almost certainly the desktops fault. It sounds like it isn't waiting for CLOSE_WRITE (if using inotify) or otherwise isn't polling access properly to see if any process has it open.