From kde-devel Mon Sep 08 09:55:16 2003 From: James Richard Tyrer Date: Mon, 08 Sep 2003 09:55:16 +0000 To: kde-devel Subject: Re: Getting the current directory in a service menu X-MARC-Message: https://marc.info/?l=kde-devel&m=106301553316789 David Faure wrote: > On Monday 08 September 2003 00:26, Henrique Pinto wrote: > >>Hi, >> >>Is there any way to pass the name of the directory that is being visualized in >>Konqueror to an external app in the "Exec=" line of the desktop file of a >>service menu? I tried putting "." and "$PWD", but they always expand to the >>home directory, instead of the current one. > > > Try %d > (see the "desktop entry standard" on developer.kde.org or in kdelibs/kio) > I think that what he wants is for it to work like this: Giver and cd with the "Exec" in a desktop file. You should be able to use: cd ; The specification: http://www.freedesktop.org/standards/desktop-entry-spec/0.9.4-onehtml/ says that you can use: Path= but it doesn't appear to work. Then the second question is: how does he get the directory. -- JRT >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<