Skip to content

Commit

Permalink
sandbox: do not run window manager if it's not a session
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Lautrbach <[email protected]>
  • Loading branch information
bachradsusi committed Jun 5, 2024
1 parent 96f6e65 commit 493406a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sandbox/sandbox
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 493406a

Please sign in to comment.