sandbox: do not fail without xmodmap

Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
Acked-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
Petr Lautrbach 2024-05-14 12:56:48 +02:00
parent 804e52b7f8
commit 96f6e65f40

View File

@ -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)