Home Help Center

Application name

nsnsnsns Member ✭✭

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 :


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)
Sign In or Register to comment.