Bug 468836 - Dolphin does not cut selected files consistently
Summary: Dolphin does not cut selected files consistently
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 23.04.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
: 463073 472147 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-04-22 20:33 UTC by Patrick Silva
Modified: 2023-08-06 00:16 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screen recording (1.51 MB, video/x-matroska)
2023-04-22 20:33 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2023-04-22 20:33:26 UTC
Created attachment 158342 [details]
screen recording

SUMMARY
Dolphin does not always cut all selected files when I press ctrl+x. In the attached screen recording I select 4 files and then press ctrl+x. Dolphin only cuts the first selected file (all other selected files do not become greyed out) and I paste it into "Folder". I can't reproduce this bug consistently, but it occurs often after the steps below. I can't reproduce with Nautilus file manager though.

STEPS TO REPRODUCE
1. open a folder containing several files with Dolphin
2. select several files with mouse or select all files by pressing ctrl+a
3. cut all selected files by pressing ctrl+x

OBSERVED RESULT
Sometimes Dolphin does not cut all selected files. If the bug does not occur for you after the steps above,
repeat them a few times. At some point the bug will occur.

EXPECTED RESULT
Dolphin always cuts all selected files after the provided steps

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Graphics Platform: Wayland
Comment 1 Ben Bonacci 2023-04-29 11:26:24 UTC
I have also experienced this issue when cutting and copying files with Dolphin. The clipboard shows directories that I have selected to cut, however the sub-directories and files were occasionally missing after performing the cut and inspecting the directory.
Comment 2 ざいあ 2023-06-29 04:40:12 UTC
I also experience this bug, true that there is no way to reproduce it. though I can say that it will be easier to reproduce with more files.
I can only tell that my settings are grouped by file type, and the sorting is Alphabetically Case Sensitive. I used to have Manjaro before and experienced this, but now I have a fresh Install of Arch Linux, and I still got it. my Dolphin is currently on version 23.04.02
Comment 3 Adam 2023-07-11 05:42:35 UTC
*** Bug 463073 has been marked as a duplicate of this bug. ***
Comment 4 Patrick Silva 2023-07-11 13:32:44 UTC
*** Bug 472147 has been marked as a duplicate of this bug. ***
Comment 5 Ben Bonacci 2023-07-29 11:49:15 UTC
*** Bug 472716 has been marked as a duplicate of this bug. ***
Comment 6 Ben Bonacci 2023-07-29 11:50:50 UTC
To add, I can only reproduce this bug by using the keyboard shortcuts (Ctrl + A, Ctrl + C/Ctrl + X, and Ctrl + V) where selecting the files with the mouse copies/moves everything correctly.
Is this the same behavior for everyone else?
Comment 7 Valeri 2023-07-29 11:56:50 UTC
Pretty reliable reproduction steps as well as an error message from 472716:

1. Run the following commands in bash to generate a directory with 3000 empty files:
1.1 mkdir /tmp/dolphin_copy_test_src /tmp/dolphin_copy_test_dst
1.2 cd /tmp/dolphin_copy_test_src
1.3 for ((i=1;i<=3000;i++)); do touch $(uuidgen); done
2. Open Dolphin file manager, preferably from terminal
3. Navigate to /tmp/dolphin_copy_test_src
4. Press Ctrl+A to select all 3000 files in directory
5. Press Ctrl+C to copy files; at this point console will be spammed with

QDBusConnection: error: could not send message to service "org.freedesktop.portal.Documents" path "/org/freedesktop/portal/documents" interface "org.freedesktop.portal.FileTransfer" member "AddFiles": Marshalling failed: Invalid file descriptor passed in arguments

6. Navigate to /tmp/dolphin_copy_test_dst
7. Press Ctrl+V to paste files you've copied
Comment 8 Valeri 2023-07-29 12:01:02 UTC
(In reply to Ben Bonacci from comment #6)
> To add, I can only reproduce this bug by using the keyboard shortcuts (Ctrl
> + A, Ctrl + C/Ctrl + X, and Ctrl + V) where selecting the files with the
> mouse copies/moves everything correctly.
> Is this the same behavior for everyone else?

No; with my setup from previous comment I can reproduce it by using mouse controls only (dolphin 23.04.3).