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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user