From 2faf510146733c28a5dbc3245175700abcf4f966 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Tue, 15 Oct 2024 02:15:55 +0900 Subject: helper/bwrap: ordered filesystem args The argument builder was written based on the incorrect assumption that bwrap arguments are unordered. The argument builder is replaced in this commit to correct that mistake. Signed-off-by: Ophestra Umiker --- internal/app/share.display.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/app/share.display.go') diff --git a/internal/app/share.display.go b/internal/app/share.display.go index da9f6eff..86343d8b 100644 --- a/internal/app/share.display.go +++ b/internal/app/share.display.go @@ -41,7 +41,7 @@ func (seal *appSeal) shareDisplay() error { w := path.Join(seal.sys.runtime, "wayland-0") seal.sys.link(wp, wpi) seal.sys.setEnv(waylandDisplay, w) - seal.sys.bind(wpi, w, true) + seal.sys.bwrap.Bind(wpi, w) // ensure Wayland socket ACL (e.g. `/run/user/%d/wayland-%d`) seal.sys.updatePermTag(state.EnableWayland, wp, acl.Read, acl.Write, acl.Execute) @@ -59,7 +59,7 @@ func (seal *appSeal) shareDisplay() error { } else { seal.sys.changeHosts(seal.sys.Username) seal.sys.setEnv(display, d) - seal.sys.bind("/tmp/.X11-unix", "/tmp/.X11-unix", true) + seal.sys.bwrap.Bind("/tmp/.X11-unix", "/tmp/.X11-unix") } } -- cgit v1.3.1