From: Ralf Jung Date: Fri, 9 Aug 2024 09:22:55 +0000 (+0200) Subject: don't change hostname, it doesn't work well for GUI apps under Gnome X-Git-Url: https://git.ralfj.de/bubblebox.git/commitdiff_plain/97374dba716ee7954d9e267a312d2d3f50386fec?ds=sidebyside;hp=8805de02dfd6fab4240022e3da5f0bb988de58d2 don't change hostname, it doesn't work well for GUI apps under Gnome --- diff --git a/profiles.py b/profiles.py index 57dc010..d2d7841 100644 --- a/profiles.py +++ b/profiles.py @@ -7,7 +7,8 @@ DEFAULT = group( bwrap_flags("--unshare-user", "--unshare-pid", "--unshare-cgroup"), # A different hostname is useful to be able to see when we are inside the sandbox. # However, some applications will not like this unless the hostname also exists in `/etc/hosts`! - bwrap_flags("--unshare-uts", "--hostname", "bubblebox"), + # Also, gnome-shell doesn't display window icons properly when this is set. + #bwrap_flags("--unshare-uts", "--hostname", "bubblebox"), # Make sure the sandbox cannot inject commands into the host terminal. # TODO: This flag breaks some CLI applications, like job control in shells. # Consider using SECCOMP instead.