Skip to content

Commit

Permalink
sandbox: do not fail without xmodmap
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Lautrbach <[email protected]>
Acked-by: James Carter <[email protected]>
  • Loading branch information
bachradsusi committed Jun 5, 2024
1 parent 804e52b commit 96f6e65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sandbox/sandbox
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 96f6e65

Please sign in to comment.