Bug 501765 - "copy multiple files to folder" dialog forgets the last directory it sent files to.
Summary: "copy multiple files to folder" dialog forgets the last directory it sent fil...
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Open/save dialogs (show other bugs)
Version: 6.12.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-19 20:35 UTC by Quentin Guyot
Modified: 2025-04-02 23:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Quentin Guyot 2025-03-19 20:35:16 UTC
SUMMARY
I regularly copy several images from several folders to a same folder, with Gwenview.
The problem is that, unless I explicitly re-select the destination folder in the dialog for each source folder, the dialog copies the files to ~, even though the desired destination folder was highlighted.

STEPS TO REPRODUCE
1. copy multiple (the bug is about the folder dialog) files from folder "source1" to folder "destination" with F7 in Gwenview.
2. move Gwenview's folder to folder "source2" and repeat the process.
3. As "destination" is still highlighted, I just click "copy" to copy the files into "destination"

OBSERVED RESULT
Selected files from "source2" are copied to ~ and when I repeat the process for "source3", ~ will be the highlighted folder.

EXPECTED RESULT
Selected files from "source2" should be copied to "destination" and when I repeat the process for "source3", "destination" will still be highlighted.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.13.7-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Sometimes it happens with an extra step (so replace 2 with 3 and 3 with 4)
Comment 1 John Kizer 2025-03-28 19:42:32 UTC
Hi - I can't reproduce this on Fedora KDE 41 when following the steps listed there - is there a chance you could capture a screencast/recording demonstrating this so folks might be able to see if there are any nuances to how you're moving around Gwenview or the dialog that could be triggering something?

Thanks!
Comment 2 Quentin Guyot 2025-03-29 20:39:42 UTC
  just did a test with a mock folder to make a sreencast, and the bug 
didn't happen on my machine either.

After a bit of playing around, I realized the source folders had to be 
in a hidden folder for the issue to occur.

Le 28/03/2025 à 20:42, John Kizer a écrit :
> https://bugs.kde.org/show_bug.cgi?id=501765
>
> John Kizer <john.kizer@proton.me> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>               Status|REPORTED                    |NEEDSINFO
>           Resolution|---                         |WAITINGFORINFO
>                   CC|                            |john.kizer@proton.me
>
> --- Comment #1 from John Kizer <john.kizer@proton.me> ---
> Hi - I can't reproduce this on Fedora KDE 41 when following the steps listed
> there - is there a chance you could capture a screencast/recording
> demonstrating this so folks might be able to see if there are any nuances to
> how you're moving around Gwenview or the dialog that could be triggering
> something?
>
> Thanks!
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 3 John Kizer 2025-04-01 00:56:12 UTC
(In reply to Quentin Guyot from comment #2)
> After a bit of playing around, I realized the source folders had to be 
> in a hidden folder for the issue to occur.

Can you perhaps share the specific folder paths you're using? I tried creating source folders that were under a hidden folder, then following those steps to copy to a destination that isn't under a hidden folder on my device, and couldn't reproduce.

Thanks!
Comment 4 Quentin Guyot 2025-04-01 16:01:24 UTC
I did it with .test/1/ ./test/2/ .test/3/ destination/ all within my 
regular Downloads folder

Each numbered folder with multiple images inside.

Then I move multiple selected images at once, that way Gwenview calls 
the folder selector. The single file selector works as intended.

At one point in my latest round of tests, I noticed the folder selector 
move to my home folder in the split second between I pressed enter and 
the time it closed.


Le 01/04/2025 à 02:56, John Kizer a écrit :
> https://bugs.kde.org/show_bug.cgi?id=501765
>
> --- Comment #3 from John Kizer <john.kizer@proton.me> ---
> (In reply to Quentin Guyot from comment #2)
>> After a bit of playing around, I realized the source folders had to be
>> in a hidden folder for the issue to occur.
> Can you perhaps share the specific folder paths you're using? I tried creating
> source folders that were under a hidden folder, then following those steps to
> copy to a destination that isn't under a hidden folder on my device, and
> couldn't reproduce.
>
> Thanks!
>
> --
> You are receiving this mail because:
> You reported the bug.