Add "display_name" configuration option and use its value instead of the hard coded one. Patch by Diego N. Barbato --- a/app.cpp 1970-01-01 01:00:00.000000000 +0100 +++ b/app.cpp 2019-04-27 13:48:23.479133531 +0200 @@ -190,7 +190,13 @@ } void App::Run() { - DisplayName = DISPLAY; + /* Read configuration */ + cfg = new Cfg; + char *cfgfile = getenv("SLIM_CFGFILE"); + if (!cfgfile) cfgfile = CFGFILE; + cfg->readConf(cfgfile); + + DisplayName = cfg->getOption("display_name").c_str(); #ifdef XNEST_DEBUG char* p = getenv("DISPLAY"); @@ -200,11 +206,7 @@ } #endif - /* Read configuration and theme */ - cfg = new Cfg; - char *cfgfile = getenv("SLIM_CFGFILE"); - if (!cfgfile) cfgfile = CFGFILE; - cfg->readConf(cfgfile); + /* Read theme */ string themebase = ""; string themefile = ""; string themedir = ""; @@ -911,9 +913,7 @@ static const int MAX_XSERVER_ARGS = 256; static char* server[MAX_XSERVER_ARGS+2] = { NULL }; server[0] = (char *)cfg->getOption("default_xserver").c_str(); - string argOption =
aboutsummaryrefslogtreecommitdiff |