This forum has been archived. All content is frozen. Please use KDE Discuss instead.

.desktop file test conditions and menu item ordering

Tags: None
(comma "," separated)
dark_ixion
Registered Member
Posts
1
Karma
0
OS
Hi,

I'm trying to write a .desktop file for Konqueror/Dolphin 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:

Code: Select all
ShowIfTrue=[ -r %d/.svn/entries ] && echo "true"
X-KDE-ShowIfDBusCall=[ -r %d/.svn/entries ] && echo "true"


But neither do. Could someone provide some insight into what I need to do to achieve this?

And also, is there a way to ensure the order of context menu items?
For example, I'd want the following:

Code: Select all
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.

Thanks

Thom
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You may wish to ask in #kde-devel on Freenode regarding this, or on the kde-devel@kde.org mailing list.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]