lib:: fix the bug that cannot copy files on desktop to desktop.

NOTE: copy some codes from nautilus.

tower:https://tower.im/projects/8f19f0bf0e754f0b82ef2c24bc230973/todos/2c1926b00a924843913e2d40fa134d39/
Change-Id: I18712150f426123b879e6a2e0afa960bca972e4b