Bug 457765

Summary: "Copy" action in context menu always copies the path of the leaf node folder, not the path of the folder you right-clicked on
Product: [Frameworks and Libraries] frameworks-kio Reporter: spamless.9v5xj
Component: URL navigatorAssignee: KIO Bugs <kio-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kdelibs-bugs, kfm-devel, nate
Priority: NOR    
Version: 5.96.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Arrows to indicate issue

Description spamless.9v5xj 2022-08-11 15:49:29 UTC
Created attachment 151254 [details]
Arrows to indicate issue

The context menu when right clicking the location bar has a "Copy" option which always copies the entire path even though further options below to "Open in new tab/window" suggest it will copy the partial path (there is a separator, but other parts of Dolphin use it for categorization so it's not distinct enough). Also there is no quick way to copy a partial file path.


SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION
Sorry for the crappy picture but PrtScreen doesn't work with the context menu open
Comment 1 Nate Graham 2022-08-11 17:28:51 UTC
> even though further options below to "Open in new tab/window" suggest it will copy the partial path

Can you explain how these other options give you that impression?
Comment 2 spamless.9v5xj 2022-08-11 18:36:21 UTC
(In reply to Nate Graham from comment #1)
> Can you explain how these other options give you that impression?

Computing convention leads me to expect all entries in the same context menu will apply to the thing one has selected/highlighted. By providing possible actions specific to the exact location right-clicked on, it cements to me that the individual directories in the location bar are interactable objects treated distinctly, thus I take it to mean that the choices presented to me all refer to the particular spot in the path I have clicked rather than the full path of the location bar.
Comment 3 Nate Graham 2022-08-11 21:06:13 UTC
Ah, I get it now. It copies the full path, but the context implies that it would copy the past of the thing you right-clicked on. That's a totally reasonable thing to assume. I was confused because that's what I expected too!

I can reproduce this in Gwenview too, which means it's a bug in the library component rather than in Dolphin.