Getting the current directory in a service menu

Aaron J. Seigo aseigo at kde.org
Mon Sep 8 00:28:12 BST 2003


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




More information about the kfm-devel mailing list