diff mbox series

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

Message ID 20240514105651.225925-1-lautrbach@redhat.com (mailing list archive)
State New
Delegated to: Petr Lautrbach
Headers show
Series [1/4] sandbox: do not fail without xmodmap | expand

Commit Message

Petr Lautrbach May 14, 2024, 10:56 a.m. UTC
Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
---
 sandbox/sandbox | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

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)