Jules,
I just got bitten up the ass by the fact that this case, and by extension, currentApplicationFile, are not implemented under linux.
I don’t know if you are aware of this, but you can generally get the current exe by resolving the symlink
/proc//exe
where pid is the pid of the running application.
I’ll try and knock together some code this weekend, but if I get sidetracked (highly probable) there is at least something for you to work from, if you weren’t already familiar with that trick.
Edit: pissing around with the pid is pretty pointless when you can just use the ‘self’ process dependent symlink - guaranteed to be linuxthreads friendly too.