Blame SOURCES/0016-sandbox-Use-matchbox-window-manager-instead-of-openb.patch

b9d005
From be804ecd456a52803067e1aa11e20ef69788221c Mon Sep 17 00:00:00 2001
5b70e6
From: Petr Lautrbach <plautrba@redhat.com>
5b70e6
Date: Wed, 18 Jul 2018 09:09:35 +0200
5b70e6
Subject: [PATCH] sandbox: Use matchbox-window-manager instead of openbox
5b70e6
5b70e6
---
5b70e6
 sandbox/sandbox     |  4 ++--
5b70e6
 sandbox/sandbox.8   |  2 +-
5b70e6
 sandbox/sandboxX.sh | 14 --------------
5b70e6
 3 files changed, 3 insertions(+), 17 deletions(-)
5b70e6
5b70e6
diff --git a/sandbox/sandbox b/sandbox/sandbox
5b70e6
index 16c43b51eaaa..7709a6585665 100644
5b70e6
--- a/sandbox/sandbox
5b70e6
+++ b/sandbox/sandbox
5b70e6
@@ -268,7 +268,7 @@ class Sandbox:
5b70e6
             copyfile(f, "/tmp", self.__tmpdir)
5b70e6
             copyfile(f, "/var/tmp", self.__tmpdir)
5b70e6
 
5b70e6
-    def __setup_sandboxrc(self, wm="/usr/bin/openbox"):
5b70e6
+    def __setup_sandboxrc(self, wm="/usr/bin/matchbox-window-manager"):
5b70e6
         execfile = self.__homedir + "/.sandboxrc"
5b70e6
         fd = open(execfile, "w+")
5b70e6
         if self.__options.session:
5b70e6
@@ -362,7 +362,7 @@ sandbox [-h] [-l level ] [-[X|M] [-H homedir] [-T tempdir]] [-I includefile ] [-
5b70e6
 
5b70e6
         parser.add_option("-W", "--windowmanager", dest="wm",
5b70e6
                           type="string",
5b70e6
-                          default="/usr/bin/openbox",
5b70e6
+                          default="/usr/bin/matchbox-window-manager",
5b70e6
                           help=_("alternate window manager"))
5b70e6
 
5b70e6
         parser.add_option("-l", "--level", dest="level",
5b70e6
diff --git a/sandbox/sandbox.8 b/sandbox/sandbox.8
5b70e6
index d83fee76f335..90ef4951c8c2 100644
5b70e6
--- a/sandbox/sandbox.8
5b70e6
+++ b/sandbox/sandbox.8
5b70e6
@@ -77,7 +77,7 @@ Specifies the windowsize when creating an X based Sandbox. The default windowsiz
5b70e6
 \fB\-W\fR \fB\-\-windowmanager\fR
5b70e6
 Select alternative window manager to run within 
5b70e6
 .B sandbox \-X.
5b70e6
-Default to /usr/bin/openbox.
5b70e6
+Default to /usr/bin/matchbox-window-manager.
5b70e6
 .TP
5b70e6
 \fB\-X\fR 
5b70e6
 Create an X based Sandbox for gui apps, temporary files for
5b70e6
diff --git a/sandbox/sandboxX.sh b/sandbox/sandboxX.sh
5b70e6
index 4774528027ef..c211ebc14549 100644
5b70e6
--- a/sandbox/sandboxX.sh
5b70e6
+++ b/sandbox/sandboxX.sh
5b70e6
@@ -6,20 +6,6 @@ export TITLE="Sandbox $context -- `grep ^#TITLE: ~/.sandboxrc | /usr/bin/cut -b8
5b70e6
 [ -z $2 ] && export DPI="96" || export DPI="$2"
5b70e6
 trap "exit 0" HUP
5b70e6
 
5b70e6
-mkdir -p ~/.config/openbox
5b70e6
-cat > ~/.config/openbox/rc.xml << EOF
5b70e6
-
5b70e6
-		xmlns:xi="http://www.w3.org/2001/XInclude">
5b70e6
-<applications>
5b70e6
-  <application class="*">
5b70e6
-    <decor>no</decor>
5b70e6
-    <desktop>all</desktop>
5b70e6
-    <maximized>yes</maximized>
5b70e6
-  </application>
5b70e6
-</applications>
5b70e6
-</openbox_config>
5b70e6
-EOF
5b70e6
-
5b70e6
 (/usr/bin/Xephyr -resizeable -title "$TITLE" -terminate -reset -screen $SCREENSIZE -dpi $DPI -nolisten tcp -displayfd 5 5>&1 2>/dev/null) | while read D; do
5b70e6
     export DISPLAY=:$D
5b70e6
     cat > ~/seremote << __EOF
5b70e6
-- 
5b70e6
2.32.0
5b70e6