Re: .desktop file test conditions and menu item ordering

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3 March 2010 10:57, Kevin Krammer <kevin.krammer@xxxxxx> wrote:
> On Wednesday, 2010-03-03, Thom Brown wrote:
>> On 3 March 2010 10:40, Kevin Krammer <kevin.krammer@xxxxxx> wrote:
>> > 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.
>>
>> Yeah, I've only just begun to learn about these D-Bus calls, so I need
>> to construct one for the project I'm doing this for.  I was only
>> trying to use that option as this page said both calls were
>> equivalent: http://www.grumz.net/?q=node/377
>>
>> Obviously they're not really though.
>
> I guess what the page author meant was that it can be used for the same
> effect, i.e. conditional visibility.
> But I agree that it isn't phrased very well.
>
> What you could try is to use a shell script instead of the command in
> ShowIfTrue.
> In this script you can then log to a file and thus see if the script is
> called, which parameters it gets, etc.
>

That's a good idea!  I suspect that option doesn't do anything, but
I'll give that a go.

Thanks

Thom
___________________________________________________
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.


[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux