LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Rate this Entry

"Show original directory" on Dolphin5, as a Service Menu

Posted 09-11-2016 at 05:29 PM by the dsc
Updated 09-11-2016 at 05:33 PM by the dsc

It used to be a native function of Konqueror/Dolphin4, but apparently it's rubbish and should be a service menu, so here's my attempt at it.

Code:
# This is free, open-source, and all that kind of stuff 
[Desktop Entry]
Type=Service
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=all/all
Actions=goToRealPath;
ServiceTypes=KonqPopupMenu/Plugin

[Desktop Action goToRealPath]
Name=Go To Real Path
Exec=dolphin "$(dirname "$(realpath "%f")")"
Icon=dolphin
Nowadays it's decided that it should be installed at ~/.local/share/kservices5/ServiceMenus/ , or (supposedly) at /usr/share/kde4/services/ServiceMenus/ for all-users.

I don't know how to have it working only for actual symlinks, apparently if it's mimetype=inode/symlinks it doesn't work at all, as it "follows" the symlink and ends up in an actual file, so it would work only for broken symlinks.

You must execute the rather obscure command "kbuildsycoca5" in order to update the service menus. Perhaps even restart dolphin. Then it will show up under the "actions" submenu, or perhaps right away in the first context menu if it's a file and not a folder. I don't know how to set where it will show up.

Once you click it, it opens a new Dolphin instance.
Posted in Uncategorized
Views 1053 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 03:41 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration