From kde-devel Mon Sep 08 09:23:01 2003 From: James Richard Tyrer Date: Mon, 08 Sep 2003 09:23:01 +0000 To: kde-devel Subject: Re: Getting the current directory in a service menu X-MARC-Message: https://marc.info/?l=kde-devel&m=106301324114804 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 <<