forlano Messages: 1188 Registered: March 2006 Location: Italy
Senior Contributor
Hello,
GetCurrentDirectory() under linux is obtained via
getcwd(h, 1024)
Unfortunatly this function return a different directory depending whether the program is run typing in consolle or by a double click.
This make a BIG difference if the app run another executable that depends by the "real" current directory, i.e. where the exe file resides.
I wonder if there is a safer and better way under linux to achieve the wanted purpose.