Some time ago, I needed to know the pathname of my running application, in order to create a temporary file.
As it seems ther are alot more options than I thought.
So I applied all I could find in this little snippet.
I also used the full names to make clear where everything is coming from.
Guess I'll stick to
Let me know if you know others.