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.
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"
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.
Ratings & Comments
4 Comments
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"
Skip the first two words in the above post. (so that the first sentence makes since.)
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.
this feature just have to be in KDE service-menu by default. maybe post it to brainstorm?