2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 14:25:52 +00:00

catch exception for x.start()

This commit is contained in:
Jamie Strandboge
2012-08-24 10:49:24 -05:00
parent a13efcfe0a
commit 064887dfbd

View File

@@ -391,8 +391,13 @@ def run_xsandbox(command, opt):
x = SandboxXpra(opt.resolution, command[0], driver="xdummy")
else:
x = SandboxXpra(opt.resolution, command[0])
x.start()
apparmor.common.msg("Using 'DISPLAY=%s'" % os.environ["DISPLAY"])
try:
x.start()
except Exception as e:
error(e)
msg("Using 'DISPLAY=%s'" % os.environ["DISPLAY"])
# aa-exec
try: