Added environment variable identifying Waybox

This commit is contained in:
Keith Bowes 2025-02-27 11:44:53 -05:00
parent 606663a390
commit f6ebf16a95

View file

@ -152,6 +152,7 @@ bool init_config(struct wb_server *server) {
doc = xmlReadFile(rc_file, NULL, XML_PARSE_RECOVER); doc = xmlReadFile(rc_file, NULL, XML_PARSE_RECOVER);
wlr_log(WLR_INFO, "Using config file %s", rc_file); wlr_log(WLR_INFO, "Using config file %s", rc_file);
setenv("WAYBOX_CONFIG_FILE", rc_file, true);
free(rc_file); free(rc_file);
if (doc == NULL) { if (doc == NULL) {
wlr_log(WLR_ERROR, "%s", _("Unable to parse the configuration file. Consult stderr for more information.")); wlr_log(WLR_ERROR, "%s", _("Unable to parse the configuration file. Consult stderr for more information."));