mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
Move os.chdir(old_cwd) to before the aa-exec call it remove the side-effect of
the chdir to $HOME when using Xpra. Acked-By: Jamie Strandboge <jamie@canonical.com> Acked-by: Steve Beattie <steve@nxnw.org>
This commit is contained in:
@@ -706,6 +706,7 @@ def run_xsandbox(command, opt):
|
||||
x.start()
|
||||
except Exception as e:
|
||||
error(e)
|
||||
os.chdir(old_cwd)
|
||||
|
||||
if not opt.read_path:
|
||||
opt.read_path = []
|
||||
@@ -721,6 +722,5 @@ def run_xsandbox(command, opt):
|
||||
x.cleanup()
|
||||
raise
|
||||
x.cleanup()
|
||||
os.chdir(old_cwd)
|
||||
|
||||
return rc, report
|
||||
|
Reference in New Issue
Block a user