[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:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2003-09-07 23:28:12
[Download RAW message or body]

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

- -- 
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/W78M1rcusafx20MRAoz1AJ9d0tv5H5BTzjnL+hzwmzAsHbh9JgCfeUjL
/Cdq3AXsi+J9fdYKnXELA0c=
=hcfD
-----END PGP SIGNATURE-----
 
>> 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