Re: [PATCH 1/4] sandbox: do not fail without xmodmap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 14, 2024 at 7:25 AM Petr Lautrbach <lautrbach@xxxxxxxxxx> wrote:
>
> Signed-off-by: Petr Lautrbach <lautrbach@xxxxxxxxxx>

For these four patches:
Acked-by: James Carter <jwcart2@xxxxxxxxx>

> ---
>  sandbox/sandbox | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/sandbox/sandbox b/sandbox/sandbox
> index fe631a92cecd..c2ae4de69128 100644
> --- a/sandbox/sandbox
> +++ b/sandbox/sandbox
> @@ -479,7 +479,10 @@ sandbox [-h] [-l level ] [-[X|M] [-H homedir] [-T tempdir]] [-I includefile ] [-
>
>                      xmodmapfile = self.__homedir + "/.xmodmap"
>                      xd = open(xmodmapfile, "w")
> -                    subprocess.Popen(["/usr/bin/xmodmap", "-pke"], stdout=xd).wait()
> +                    try:
> +                        subprocess.Popen(["/usr/bin/xmodmap", "-pke"], stdout=xd).wait()
> +                    except:
> +                        pass
>                      xd.close()
>
>                      self.__setup_sandboxrc(self.__options.wm)
> --
> 2.45.0
>
>





[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux