Summary: | Moving the desktop directory doesn't check if the destination directory is a subdirectory of the orginial | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Martin Berglund <mabe02> |
Component: | kcm_desktoppath | Assignee: | Unassigned bugs mailing-list <unassigned-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aacid, finex, kde, mabe02 |
Priority: | NOR | ||
Version: | 4.1 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Martin Berglund
2008-09-22 23:06:24 UTC
Moving a dir to one of its children works here, you get a warning saying the children could not be moved to itself, but everything else is moved, i would say that your problem is that you moved ~ to another dir and that's usually not something the user wants to do, so if src is the home i would: a) Not move b) Ask again if the user is really sure he wants to move Ok, I didn't get any warning when I did it, maybe someone added that after I made the report. I'll make another checkout and try again. However, moving the content of a directory to one of it's subdirectories really isn't correct by definition and shouldn't be allowed. Moving everything in ~ is certainly even more wrong. So, either just asking for confirmation or informing the user that the content couldn't be moved, I guess? So what about this: - First, do the question that is already on the code - If he says yes, after that, if src.isParentOf(dest) ask a new question telling the user this is unusual to do and ask him if he is sure - If he says yes, after that, if src is the home of the user ask a new question telling the user this might be disruptive and ask him if he is sure Getting three messageboxes in a row is probably more than enough so you end up reading at least one of them and pressing Cancel on time if that's not exactly what you want to do. On the other hand we might just do the check you do now plus a message saying the files would not be moved from foo to bar because bar is a child of foo, that the user should move any document himself manually. I'm not really sure, you choose ;.) There are now a lot of checks to make sure we never move the home directory. |