Bug 118552

Summary: Need a "Copy location" context menu command to copy filename or URL to clipboard
Product: [Applications] gwenview Reporter: Tristan Miller <psychonaut>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: wishlist CC: null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot showing how the Copy command is not available

Description Tristan Miller 2005-12-18 03:36:56 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    SuSE RPMs

When I'm browsing my local file system in Konqueror, it would be nice if I could right-click on a filename/icon/thumbnail and have a "Copy file location" command, which would copy the file's URL to the clipboard.

For example, if I am browing in the folder /tmp/foo/bar/baz and right-click on the file quux.txt, I would like to be able to copy the text "file:///tmp/foo/bar/baz/quux.txt" or even just "/tmp/foo/bar/baz/quux.txt" to the clipboard so that I can paste it into a web browser (like Mozilla) or an application's File Open dialog.
Comment 1 Thiago Macieira 2005-12-18 05:09:12 UTC
It's there already. It's called "Copy" and it's accessible by shortcut Ctrl+C.
Comment 2 Tristan Miller 2005-12-18 06:39:02 UTC
Two observations which may be bugs:

1) The "Copy" command copies the location to some KDE-specific clipboard, not to the X Windows clipboard.  Therefore I can't use middle-click to paste the URL into a non-KDE application like Mozilla, or even a KDE application like Konsole.  Is there some setting for changing this behaviour that I'm overlooking, or is this a bug?

2) The "Copy" command in the context menu is often grayed out for no apparent reason, which is what led me to believe that KDE did not have this feature.  (See attached screenshot.)  If I switch the view modes a few times, sometimes the Copy command becomes available.  But if I close Konqueror and restart it again, the Copy command is always greyed out again.
Comment 3 Tristan Miller 2005-12-18 06:39:31 UTC
Created attachment 13966 [details]
Screenshot showing how the Copy command is not available
Comment 4 Thiago Macieira 2005-12-18 15:15:43 UTC
Reassigning to the gwenview part. It works fine in the Konqueror's icon and list views.

Comment 5 null 2017-11-12 14:23:18 UTC
This is very old and I don't know when it was fixed, but in a current Gwenview this is mostly working like described in comment 1 and in the duplicate.

> 1) The "Copy" command copies the location to some KDE-specific clipboard,
> not to the X Windows clipboard.
Make sure to sync clipboard and selection in Klipper's preferences.

*** This bug has been marked as a duplicate of bug 368306 ***