]> git.tdb.fi Git - libs/core.git/commit
Chdir into a sensible location before starting the application
authorMikko Rasa <tdb@tdb.fi>
Wed, 12 Nov 2014 20:22:15 +0000 (22:22 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 12 Nov 2014 20:22:15 +0000 (22:22 +0200)
commitfa82e97ed56597f2d968abdf4ebf688de4f9b618
tree84a4c7043df508ebc2d7a948b237efedc3e3810f
parente2b5cb6cd61bf8c6f56f624cc835233df92288da
Chdir into a sensible location before starting the application

System location accessors will ultimately return this directory.  The
default is /, which can easily cause problems.  In particular, many of
my applications expect to have their data in get_sys_data_dir()/"data".
On Android /data exists but is not readable.
source/core/android/mainthread.cpp