<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>KDE on chriswalsh.dev</title><link>https://chriswalsh.dev/tags/kde/</link><description>Recent content in KDE on chriswalsh.dev</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 10 Nov 2020 14:57:00 +0000</lastBuildDate><atom:link href="https://chriswalsh.dev/tags/kde/index.xml" rel="self" type="application/rss+xml"/><item><title>Add 'Copy Path' context menu item to Dolphin</title><link>https://chriswalsh.dev/posts/copy-path/</link><pubDate>Tue, 10 Nov 2020 14:57:00 +0000</pubDate><guid>https://chriswalsh.dev/posts/copy-path/</guid><description>This is for KDE5 with Dolphin as the file manager.
First we need to install xclip:
sudo apt-get install xclip Next we then need create a desktop file at the following path: ~/.local/share/kservices5.
You may need to create the above directory.
Then run:
sudo nano ~/.local/share/kservices5/copy-path.desktop Paste in the following:
[Desktop Action copy-path] Exec=echo &amp;#34;%U&amp;#34; | tr -d &amp;#39;\n&amp;#39; | xclip -selection clipboard Name=Copy Path Icon=edit-copy [Desktop Entry] Actions=copy-path ServiceTypes=KonqPopupMenu/Plugin MimeType=all/all Type=Service X-KDE-Priority=TopLevel Finally restart dolphin, a top level context menu should appear when you right click on a file, to copy its absolute path.</description></item></channel></rss>