[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Getting the current directory in a service menu
From:       "ne..." <akabi () speakeasy ! net>
Date:       2003-09-08 11:52:07
[Download RAW message or body]

On Sep 8, 2003 at 02:55, James Richard Tyrer in a maddening rage wrote:

>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 <dir> and <command>
>
>	cd <dir>
>	<command>
>
>with the "Exec" in a desktop file.
>
>You should be able to use:
>
>	cd <dir>; <command>
In Linux for <command> to act on files in <dir> you would
have to do:

	cd <dir> && <command>

HTH.

-- 
Registered Linux User # 125653 (http://counter.li.org)
Switch to: http://www.speakeasy.net/refer/190653
Seeing that death, a necessary end,
Will come when it will come.
		-- William Shakespeare, "Julius Caesar"
 07:50:45  up 14 days, 19:25,  3 users,  load average: 0.00, 0.00, 0.00
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic