mirror of
https://github.com/SELinuxProject/selinux
synced 2025-05-02 07:37:59 +00:00
policycoreutils: sandbox: use dbus-launch
Instead of directly calling, use dbus-launch. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
26ff83cf87
commit
64b7a309c5
@ -237,7 +237,7 @@ class Sandbox:
|
|||||||
/usr/bin/test -r ~/.xmodmap && /usr/bin/xmodmap ~/.xmodmap
|
/usr/bin/test -r ~/.xmodmap && /usr/bin/xmodmap ~/.xmodmap
|
||||||
%s &
|
%s &
|
||||||
WM_PID=$!
|
WM_PID=$!
|
||||||
%s
|
dbus-launch --exit-with-session %s
|
||||||
kill -TERM $WM_PID 2> /dev/null
|
kill -TERM $WM_PID 2> /dev/null
|
||||||
""" % (command, wm, command))
|
""" % (command, wm, command))
|
||||||
fd.close()
|
fd.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user