Archived
This forum has been archived. Please start a new discussion on GitHub.
Application name
in Help Center
Hi,
Ice::Application provides the name of my application via appName() which returns argv[0].
This is not always convenient, e.g., I invoke my application :
/it/is/a/very/long/path/to/my/favorite/binaries/my_application
and this long string will appear in all error messages. Is there a way to set the application
name (argv[0] can be kept as a default) ? If the answer is no, then could you consider this
as an entry to the TODO list.
The similar story is with Ice::Service (for Linux).
BTW, why they are so different (appName vs name; const char* vs std::string):
static const char * Ice::Application::appName();
std::string Ice::Service::name();
This is not important, but just for my curiosity.
Cheers, Nikolai (nsns)
Ice::Application provides the name of my application via appName() which returns argv[0].
This is not always convenient, e.g., I invoke my application :
/it/is/a/very/long/path/to/my/favorite/binaries/my_application
and this long string will appear in all error messages. Is there a way to set the application
name (argv[0] can be kept as a default) ? If the answer is no, then could you consider this
as an entry to the TODO list.
The similar story is with Ice::Service (for Linux).
BTW, why they are so different (appName vs name; const char* vs std::string):
static const char * Ice::Application::appName();
std::string Ice::Service::name();
This is not important, but just for my curiosity.
Cheers, Nikolai (nsns)
0