desktopfolder icon indicating copy to clipboard operation
desktopfolder copied to clipboard

Wrong clipboard data

Open Vladimir-csp opened this issue 6 years ago • 3 comments

Description

Wrong clipboard data format seems to be used/expected

Steps to reproduce

  1. copy file in desktopfolder
  2. try to paste in any file manager (Tried SpaceFM, PCManFM-Qt)
  3. copy file in any file manager
  4. try to paste in desktopfolder

You can also see the difference with a clipboard manager, like Qlipper.

Expected result

URL object is being placed in clipboard

Actual result

simple string with file path is being placed in clipboard or expected to be in clipboard

System Information

  • OS: Debian testing
  • Desktop Folder version: 1.0.10

Vladimir-csp avatar Dec 07 '18 12:12 Vladimir-csp

I think at least Marlin (elementary OS's file manager) uses a custom copy/paste action (or at least for copying links). Not sure if those other file managers you mentioned do that sort of thing too. Does directly copying files between those two file managers you mentioned work?

aljelly avatar Dec 07 '18 16:12 aljelly

Does directly copying files between those two file managers you mentioned work?

Yes.

In both cases pasting into text field results in just path: /path/to/file, but thanks to Qlipper I can see the difference in contents of clipboard. After copying from file managers it shows clipboard item as Url: file:///path/to/file, after copying from desktopfolder it shows clipboard item as just /path/to/file. Some kind of clipboard metadata issue perhaps?

Vladimir-csp avatar Dec 07 '18 18:12 Vladimir-csp

hi @Vladimir-csp, thanks for reporting. I'm not sure if the real problem is the uri path of the file, it seems in code that it is being copied as an uri.. Anyway, I have confirmed the problem with other file managers, pacman, krusader. It seems to be a problem inherited from marlin (in which is based the copy/paste part).

spheras avatar Dec 10 '18 09:12 spheras