D27951: Allow users to change dropAction to MoveAction through kdeglobals

Tranter Madi noreply at phabricator.kde.org
Thu Mar 26 09:55:39 GMT 2020


trmdi added a comment.


  In D27951#633820 <https://phabricator.kde.org/D27951#633820>, @dfaure wrote:
  
  > Implementation note: the fastest way to know if two items are on the same partition is to compare KIO::UDSEntry::UDS_DEVICE_ID values. But unfortunately it looks like this code takes URLs, not proper KFileItems created from a kio_file job... I guess that means statbuf.st_dev directly, on Unix?
  
  
  `KIO::UDSEntry::UDS_DEVICE_ID` doesn't provide wanted info in this case. See my example:
  
    [ "UDS_NAME"="/home/trmdi/Downloads/mount/Data" "UDS_SIZE"=0 "UDS_DEVICE_ID"=4607182418800017408 "UDS_INODE"=30008928 "UDS_FILE_TYPE"=0 "UDS_ACCESS"=0 "UDS_MODIFICATION_TIME"=140192419498368 "UDS_ACCESS_TIME"=22970816 "UDS_USER"="root" "UDS_GROUP"="" ]
    
    [ "UDS_NAME"="/home/trmdi/Downloads/mount" "UDS_SIZE"=0 "UDS_DEVICE_ID"=4607182418800017408 "UDS_INODE"=30008928 "UDS_FILE_TYPE"=0 "UDS_ACCESS"=0 "UDS_MODIFICATION_TIME"=140192419498368 "UDS_ACCESS_TIME"=22970816 "UDS_USER"="root" "UDS_GROUP"="" ]
  
  (Data is a symlink to a directory in /dev/sda2, mount is in /dev/sda1)
  
  While `KMointPoint` is still right:
  
    "/home/trmdi/Downloads/mount"  -  "/dev/sda1"
    "/home/trmdi/Downloads/mount/Data"  -  "/dev/sda2"

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D27951

To: trmdi, ngraham, dfaure, meven, #vdg, davidedmundson
Cc: elvisangelaccio, davidedmundson, meven, kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200326/b436daa1/attachment.html>


More information about the Kde-frameworks-devel mailing list