On Tuesday, 2010-03-02, Thom Brown wrote: > Hi, > > I'm trying to write a .desktop file which would determine whether or > not the selected directory of file path has .svn/entries in it. From > what I've seen, either one of the following should do: > > ShowIfTrue=[ -r %d/.svn/entries ] && echo "true" > X-KDE-ShowIfDBusCall=[ -r %d/.svn/entries ] && echo "true" The second one is not right, this is for evaluating a D-Bus call. Not sure about the other though. > And also, is there a way to ensure the order of context menu items? > For example, I'd want the following: > > ActionA > ActionB > MenuA>ActionC > > >ActionD > > But what's actually happening is ActionA and ActionB appear below > MenuA. I've tried renaming one of the .desktop files so that the one > which contains ActionA and ActionB is alphabetically earlier. I am afraid I don't know that either. My suggestions would be to ask on the kfm-devel (KDE's file manager development list) and explicitly include that the question is about service menus. Cheers, Kevin P.S.: interestingly there is currently a discussions on standardizing such file context actions on the freedesktop list so any feedback such as use cases could be used by KDE's filemanager developers to make sure they are covered by the new spec -- Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring
Attachment:
signature.asc
Description: This is a digitally signed message part.
___________________________________________________ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.