Copy file or directory path

Dolphin Service Menus

Source i (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
Become a Fan
5.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.

Ratings & Comments

4 Comments

BryanFRitt

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"

BryanFRitt

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

SzczepanH

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.

tankaa

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

Pling
0 Affiliates
Details
license
version 0.3
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 1

Other Dolphin Service Menus:

burnWithGrowisofs
chunkylover
last update date: 20 years ago

Score 5.0

Firefox-bookmarks service menu
storyteller
last update date: 20 years ago

Score 5.0

Text Convert Service Menu
smp-penguin
last update date: 21 years ago

Score 5.0

Pdflatex servicemenu
bobuse
last update date: 20 years ago

Score 5.0

Send through Bluetooth
dmnet
last update date: 21 years ago

Score 5.0

Add to Bloglines
spookster
last update date: 20 years ago

Score 5.0



System Tags