Copy file or directory path

Dolphin Service Menus

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

1
Score 50.0%
Description:

A service menu to put the path of a file or directory into the Klipper queue.

I altered the original "Copy file or directory path" 0.2 by amshali for KDE3 to work in KDE4. [http://www.kde-look.org/content/show.php/copy+file+or+directory+path?content=49076]

INSTALL:
Copy CopyPath.desktop to ~/.kde/share/kde4/services/ServiceMenus/
(If the ServiceMenus directory does not exist simply create it.)

USAGE:
right click on a file in Konqueror or Dolphin, and under Actions there will be an item Copy Path, clicking it will put the files path into klipper.

BryanFRitt

7 years ago

I found another one of these I found wasn't working, so I put the two together and came up with this desktop file...

If you prefer it top level inside of inside the 'Actions' menu try
X-KDE-Priority=TopLevel

Does the extra ',inode/directory-locked,inode/directory-hidden' do anything?
Where are these 'icons'? (Note: just kept which icons were in there)

~/.kde/share/kde4/services/112873-CopyPath.desktop

[Desktop Entry]
Type=Service
Icon=editcopy
ServiceTypes=KonqPopupMenu/Plugin,inode/directory,inode/directory-locked,inode/directory-hidden
MimeType=application/octet-stream;inode/directory
Actions=CopyPath
X-KDE-Priority=TopLevel

[Desktop Action CopyPath]
Name=Copy Path
Icon=klipper
Exec=dbus-send --type=method_call --dest=org.kde.klipper /klipper org.kde.klipper.klipper.setClipboardContents string:"%u"

Report

BryanFRitt

6 years ago

Skip the first two words in the above post. (so that the first sentence makes since.)

Report

SzczepanH

10 years ago

Doesn't work for me at all - the entry just doesn't appear in the service menu.

Is this possible that the correct installation directory would differ from distro to distro? I am particularly surprised by ~/.kde/share/kde4 path because in my distro there's just ~/.kde4 right in the home directory. ~/.kde is also there but its share subdirectory doesn't contain kde4 subdirectory.

Report

tankaa

10 years ago

this feature just have to be in KDE service-menu by default.
maybe post it to brainstorm?

Report

12345678910
product-maker Base: 4 x 5.0 Ratings
unlocomqx
Aug 13 2018
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.3
updated Sep 29 2009
added Sep 29 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0
System Tags addon