From b5f01ef20b69e155db299f824ad48c9955deedcf Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Sun, 17 Nov 2024 23:40:37 +0900 Subject: [PATCH] app: append # for ChangeHosts message with numerical uid Signed-off-by: Ophestra Umiker --- internal/app/share.display.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/share.display.go b/internal/app/share.display.go index 073a29f..801ca54 100644 --- a/internal/app/share.display.go +++ b/internal/app/share.display.go @@ -58,7 +58,7 @@ func (seal *appSeal) shareDisplay(os linux.System) error { return fmsg.WrapError(ErrXDisplay, "DISPLAY is not set") } else { - seal.sys.ChangeHosts(seal.sys.user.us) + seal.sys.ChangeHosts("#" + seal.sys.user.us) seal.sys.bwrap.SetEnv[display] = d seal.sys.bwrap.Bind("/tmp/.X11-unix", "/tmp/.X11-unix") }