diff mbox series

[2/4] sandbox: do not run window manager if it's not a session

Message ID 20240514105651.225925-2-lautrbach@redhat.com (mailing list archive)
State New
Delegated to: Petr Lautrbach
Headers show
Series [1/4] sandbox: do not fail without xmodmap | expand

Commit Message

Petr Lautrbach May 14, 2024, 10:56 a.m. UTC
Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
---
 sandbox/sandbox | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/sandbox/sandbox b/sandbox/sandbox
index c2ae4de69128..1e96f93e4a92 100644
--- a/sandbox/sandbox
+++ b/sandbox/sandbox
@@ -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)