mirror of
https://github.com/wizbright/waybox.git
synced 2025-10-29 05:40:20 -04:00
A hopefully acceptable solution
This commit is contained in:
parent
7bf6809122
commit
81887c631c
1 changed files with 7 additions and 2 deletions
|
|
@ -46,8 +46,13 @@ bool wb_start_server(struct wb_server* server) {
|
|||
return false;
|
||||
}
|
||||
|
||||
/* Needs to be done better, for languages with different word order */
|
||||
wlr_log(WLR_INFO, "%s '%s'\n", _("Running Wayland compositor on Wayland display"), socket);
|
||||
const char*const tmp = _("Running Wayland compositor on Wayland display '%s'");
|
||||
char *sockmsg = calloc(sizeof(char), strlen(tmp) + strlen(socket) - 2);
|
||||
if (sockmsg) {
|
||||
sprintf(sockmsg, tmp, socket);
|
||||
wlr_log(WLR_INFO, "%s\n", sockmsg);
|
||||
}
|
||||
free(sockmsg);
|
||||
setenv("WAYLAND_DISPLAY", socket, true);
|
||||
|
||||
wlr_gamma_control_manager_v1_create(server->wl_display);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue