I like very much the recent files (recentlyused:/files/) and recent locations (recentlyused:/locations/) access in Dolphin —and also in the Transparent Folder view widget—, but there is no option to “go to target” or “open containing folder” option for recent files.
I would like to add a service menu for that (containing Exec=dolphin %d), but can I make it appear only for the location recentlyused:/files/ — because having that appearing at the location Dolphin already is makes little sense — ?
I am sorry, but I don’t yet see the connection between getting missing services to appear on the desktop and stopping a service from appearing in all but recentlyused:/files/.
Could you please post a bit more on that?
I don’t really understand your question. From what I understand you want certain servicemenus to only appear in certain directories? Don’t think that’s possible. But if it’s some sort of “open the containing directory” you’re looking for…You could add an action or a separate servicemenu with exec= dolphin --select “$(realpath %f)”. That would open the file ( if it still exists of course) in a new dolphin tab with the file highlighted.
Unless there is such a possibility which I overlooked, the only “restriction” you can set on a servicemenu is by mime, not directory.
Yes, that is what I’m asking. I know how to add an option to open a file’s location but I only need it in recentlyused:/files/. It now appears everywhere, and in most cases is useless.
Like I said, might be missing something but I don’t think it’s possible. If the “open location” is always in your view, everywhere and mostly useless, your best bet is to kinda bundle a few service actions so that you’ll only find it in a submenu, out of sight.
In order for that to work (in Kubuntu) I had to remove the inverted commas (or use Exec=dolphin --select $(realpath "%f"), otherwise it gave an error. But dolphin --select %f works also.
I would like to add a service menu for that (containing Exec=dolphin %d), but can I make it appear only for the location recentlyused:/files/ — because having that appearing at the location Dolphin already is makes little sense — ?
That’s possible, you can follow the documentation Creating Dolphin Service Menus | Developer and set “X-KDE-Protocols” to “recentlyused” with “MimeType” “application/octet-stream”.
I guess that would be if I wanted a new window, but that happens already, even without that option. I expected a new tab, but a new window is opened with just Exec=dolphin --select %f.
I guess that would be if I wanted a new window, but that happens already, even without that option. I expected a new tab, but a new window is opened with just Exec=dolphin --select %f.
This depend on a option in dolphin. “Keep a single dolphin window, opening new folders in tabs”
We don’t ship service menus by default, all service menus are for users to install and use.
This allows more integration within dolphin, like how to position the action in the context menu.
Also it is slightly more efficient (no external to read parse, etc) but that’s not much of a concern in this case.
It still is user-configurable.