
Copy file or directory path
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
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
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
7 years ago
Report
SzczepanH
11 years ago
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
11 years ago
maybe post it to brainstorm?
Report