[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:       James Richard Tyrer <tyrerj () acm ! org>
Date:       2003-09-08 9:23:01
[Download RAW message or body]

Aaron J. Seigo wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Sunday 07 September 2003 04:26, Henrique Pinto wrote:
> 
>>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.
> 
> 
> the file name passed in should have the path with it... you could chop off the 
> file portion or the last directory in the path (if the service menu was 
> activated from a directory icon) and voila! you have the path currently being 
> seen in konqueror... 

An interesting 'AD' answer, but do you have an answer to the question?

I'm not sure that this will work.  You probably only have one Konqueror 
window open -- but, what is going to happen if you have more than one opened?

But, the problem is that even if you have the directory, how do you pass it?

--
JRT

 
>> 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