diff --git a/etk/etk.cpp b/etk/etk.cpp index e32a3a6..9972043 100644 --- a/etk/etk.cpp +++ b/etk/etk.cpp @@ -1,8 +1,6 @@ /** @file * @author Edouard DUPIN - * * @copyright 2011, Edouard DUPIN, all right reserved - * * @license APACHE v2.0 (see license file) */ @@ -14,7 +12,7 @@ #include void etk::init(int _argc, const char** _argv) { - TK_INFO("E-TK system init (BEGIN)"); + TK_INFO("E-TK system init (BEGIN) " << _argv[0]); elog::init(_argc, _argv); etk::setArgZero(_argv[0]); for (int32_t iii=0; iii<_argc ; ++iii) { diff --git a/etk/os/FSNode.cpp b/etk/os/FSNode.cpp index 61f8db1..765101e 100644 --- a/etk/os/FSNode.cpp +++ b/etk/os/FSNode.cpp @@ -1,8 +1,6 @@ /** @file * @author Edouard DUPIN - * * @copyright 2011, Edouard DUPIN, all right reserved - * * @license APACHE v2.0 (see license file) */ @@ -215,6 +213,9 @@ std::string l_argZero = ""; void etk::setArgZero(const std::string& _val) { std::unique_lock lock(getNodeMutex()); l_argZero = _val; + // set defaiult application name ... + std::vector elems = etk::split(_val, '/'); + etk::initDefaultFolder(elems[elems.size()-1].c_str()); } /* On Unixes with /proc really straight and realiable way is to: