6c667202a9
Resolves: RHEL-32364, RHEL-32363
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From daedef300edce80cf8ee20825292504104dc0221 Mon Sep 17 00:00:00 2001
|
|
From: Petr Lautrbach <lautrbach@redhat.com>
|
|
Date: Thu, 9 May 2024 16:17:05 +0200
|
|
Subject: [PATCH] sandbox: do not fail without xmodmap
|
|
Content-type: text/plain
|
|
|
|
Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
|
|
---
|
|
sandbox/sandbox | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/sandbox/sandbox b/sandbox/sandbox
|
|
index 0dc25584dd98..be8722e3b8d3 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.44.0
|
|
|