Just to clarify what i mean above.
I guess another way would be to actually move a shell script around which itself opens a terminal like so...
xterm -geometry 50x3 -bg black -fg green +sb -T "You clicked me" -hold -e echo "I am in directory $(dirname $0)"
...this works but has the following disadvantage:
It will still gives you the directory of the script.
A long way round solution ...
Grep through the file managers source and look for the function that retrives the current directory, as reflected in the file managers window.
What ever variable is used there ... use it to write that path to a file in your own HOME directory. Overwriting it each time.
Then, have the script retrieve the saved string contained in it.
Recompile the manager with an altered name, so as the extra burden of continuously writing to the file wont hold you down for ordinary usage.
I know ... greping through source can be a pain, but ... is there really another way to overcome the problem of the icon and the script being in a different working directories as to the file managers navigation.
I must be missing your point somewhere though, as part of your original comment ...
Basically, wherever the icon is placed, when clicked on in Konqueror, it should launch a terminal saying the directory it is in
i find a bit confusing ...
How can you get a desktop icon to follow a filemanager/browsers tree navigation. ???
How do you get the root window in a file manager. Can kde really do that (grin) wow ...
sorry if i've been wasting your time there
, it just seemed alike a really interesting delima, from my interpretation ... which may well be missing your point. As i get the felling that your suggesting that the icon should change directories as you do. Doesn't solve the script being where ever it is ... but i cant see how the icon could travel about. Unless its the directory icon ... hmmm, i guess that must be what you mean there.
- Code: Select all
-|- If the system is the answer, then the question
must have been really stupid -|-