Add -S to set display socket name; avoid auto wayland-0

Being able to set the socket name helps with having a predictable name
when for example connecting wayvnc to it.

Not trying the socket name "wayland-0" seems to be best practice:
https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/486
This commit is contained in:
Daniel Lublin 2025-02-04 16:07:26 +01:00
parent 360e259ca5
commit e22d2e781b
2 changed files with 28 additions and 6 deletions

View file

@ -66,6 +66,8 @@ struct cg_server {
bool return_app_code;
bool terminated;
enum wlr_log_importance log_level;
char *socket;
};
void server_terminate(struct cg_server *server);