Proposal: Add getFullProgName

Johan Tibell johan.tibell at
Wed Jun 13 06:49:26 CEST 2012

On Tue, Jun 12, 2012 at 8:08 PM, Bardur Arantsson <spam at> wrote:
> Not saying it's not an improvement over getProgName (definitely is), but
> if the intent is to provide the most accurate name of the executable
> which is running, then...
> You should probably read the /proc/self/exe symlink on Linux. (Of course
> /proc may not be mounted so you'll need a fallback in any case...)
> I believe FreeBSD and Solaris have similar methods using /proc.
> On Win32 it seems that using GetModuleFileName with a NULL first
> parameter is the way to go:

Good ideas. If we do that, do we also want a way to access the raw argv[0]?

More information about the Libraries mailing list