Review Request 104417: Copy files instead of moving if parent dir is not writable

Albert Astals Cid aacid at
Fri Feb 8 22:59:39 GMT 2013

This is an automatically generated e-mail. To reply, visit:

(Updated Feb. 8, 2013, 10:59 p.m.)

Review request for KDE Runtime, Plasma and Ivan Čukić.


When adding an application resource to a private activity kactivitymanager tries to move the resource's .desktop file to the activity's private folder. The new .desktop file is created successfully but the source file is not deleted if the user does not have write permission on the file's directory. This patch detects such situation and uses copy instead of move to prevent "permission denied" messages for every resource being added.

This addresses bug 296808.


  service/jobs/nepomuk/Move.h 8a8afd1 
  service/jobs/nepomuk/Move.cpp 2248768 



Works for resources of type "app", it does not work for "image" yet because Move::canMove receives the nepomuk's uri instead of the file url when the resource type is "image".


Lamarque Vieira Souza

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the kde-core-devel mailing list