mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-03 04:02:05 +00:00
sandbox: do not run window manager if it's not a session
Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
This commit is contained in:
parent
96f6e65f40
commit
493406acc3
@ -285,15 +285,12 @@ class Sandbox:
|
||||
fd.write("""#! /bin/sh
|
||||
#TITLE: %s
|
||||
# /usr/bin/test -r ~/.xmodmap && /usr/bin/xmodmap ~/.xmodmap
|
||||
%s &
|
||||
WM_PID=$!
|
||||
if which dbus-run-session >/dev/null 2>&1; then
|
||||
dbus-run-session -- %s
|
||||
else
|
||||
dbus-launch --exit-with-session %s
|
||||
fi
|
||||
kill -TERM $WM_PID 2> /dev/null
|
||||
""" % (command, wm, command, command))
|
||||
""" % (command, command, command))
|
||||
fd.close()
|
||||
os.chmod(execfile, 0o700)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user