6c667202a9
Resolves: RHEL-32364, RHEL-32363
36 lines
987 B
Diff
36 lines
987 B
Diff
From d6e533bde4a25e5cdbb9445dfef6080dcaa6f43e Mon Sep 17 00:00:00 2001
|
|
From: Petr Lautrbach <lautrbach@redhat.com>
|
|
Date: Tue, 20 Feb 2024 11:14:52 +0100
|
|
Subject: [PATCH] sandbox: do not run window manager if it's not a session
|
|
Content-type: text/plain
|
|
|
|
Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
|
|
---
|
|
sandbox/sandbox | 5 +----
|
|
1 file changed, 1 insertion(+), 4 deletions(-)
|
|
|
|
diff --git a/sandbox/sandbox b/sandbox/sandbox
|
|
index be8722e3b8d3..7ab98076fd2b 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)
|
|
|
|
--
|
|
2.44.0
|
|
|