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.
"Show original directory" on Dolphin5, as a Service Menu
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.
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.
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
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.
Total Comments 0