Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Linux and GetCurrentDirectory
Linux and GetCurrentDirectory [message #33878] Tue, 20 September 2011 23:25 Go to previous message
forlano is currently offline  forlano
Messages: 1185
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.

Luigi
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: read/write to /dev/rtp is happening .. but a small problem
Next Topic: Serialize a VectorMap
Goto Forum:
  


Current Time: Fri May 10 01:35:18 CEST 2024

Total time taken to generate the page: 0.04030 seconds