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

9bbebd
From 89895635ae012d1864a03700054ecc723973b5c0 Mon Sep 17 00:00:00 2001
9bbebd
From: Petr Lautrbach <plautrba@redhat.com>
9bbebd
Date: Wed, 18 Jul 2018 09:09:35 +0200
9bbebd
Subject: [PATCH] sandbox: Use matchbox-window-manager instead of openbox
9bbebd
9bbebd
---
9bbebd
 sandbox/sandbox     |  4 ++--
9bbebd
 sandbox/sandbox.8   |  2 +-
9bbebd
 sandbox/sandboxX.sh | 14 --------------
9bbebd
 3 files changed, 3 insertions(+), 17 deletions(-)
9bbebd
9bbebd
diff --git a/sandbox/sandbox b/sandbox/sandbox
9bbebd
index a12403b3..707959a6 100644
9bbebd
--- a/sandbox/sandbox
9bbebd
+++ b/sandbox/sandbox
9bbebd
@@ -268,7 +268,7 @@ class Sandbox:
9bbebd
             copyfile(f, "/tmp", self.__tmpdir)
9bbebd
             copyfile(f, "/var/tmp", self.__tmpdir)
9bbebd
 
9bbebd
-    def __setup_sandboxrc(self, wm="/usr/bin/openbox"):
9bbebd
+    def __setup_sandboxrc(self, wm="/usr/bin/matchbox-window-manager"):
9bbebd
         execfile = self.__homedir + "/.sandboxrc"
9bbebd
         fd = open(execfile, "w+")
9bbebd
         if self.__options.session:
9bbebd
@@ -362,7 +362,7 @@ sandbox [-h] [-l level ] [-[X|M] [-H homedir] [-T tempdir]] [-I includefile ] [-
9bbebd
 
9bbebd
         parser.add_option("-W", "--windowmanager", dest="wm",
9bbebd
                           type="string",
9bbebd
-                          default="/usr/bin/openbox",
9bbebd
+                          default="/usr/bin/matchbox-window-manager",
9bbebd
                           help=_("alternate window manager"))
9bbebd
 
9bbebd
         parser.add_option("-l", "--level", dest="level",
9bbebd
diff --git a/sandbox/sandbox.8 b/sandbox/sandbox.8
9bbebd
index d83fee76..90ef4951 100644
9bbebd
--- a/sandbox/sandbox.8
9bbebd
+++ b/sandbox/sandbox.8
9bbebd
@@ -77,7 +77,7 @@ Specifies the windowsize when creating an X based Sandbox. The default windowsiz
9bbebd
 \fB\-W\fR \fB\-\-windowmanager\fR
9bbebd
 Select alternative window manager to run within 
9bbebd
 .B sandbox \-X.
9bbebd
-Default to /usr/bin/openbox.
9bbebd
+Default to /usr/bin/matchbox-window-manager.
9bbebd
 .TP
9bbebd
 \fB\-X\fR 
9bbebd
 Create an X based Sandbox for gui apps, temporary files for
9bbebd
diff --git a/sandbox/sandboxX.sh b/sandbox/sandboxX.sh
9bbebd
index 47745280..c211ebc1 100644
9bbebd
--- a/sandbox/sandboxX.sh
9bbebd
+++ b/sandbox/sandboxX.sh
9bbebd
@@ -6,20 +6,6 @@ export TITLE="Sandbox $context -- `grep ^#TITLE: ~/.sandboxrc | /usr/bin/cut -b8
9bbebd
 [ -z $2 ] && export DPI="96" || export DPI="$2"
9bbebd
 trap "exit 0" HUP
9bbebd
 
9bbebd
-mkdir -p ~/.config/openbox
9bbebd
-cat > ~/.config/openbox/rc.xml << EOF
9bbebd
-
9bbebd
-		xmlns:xi="http://www.w3.org/2001/XInclude">
9bbebd
-<applications>
9bbebd
-  <application class="*">
9bbebd
-    <decor>no</decor>
9bbebd
-    <desktop>all</desktop>
9bbebd
-    <maximized>yes</maximized>
9bbebd
-  </application>
9bbebd
-</applications>
9bbebd
-</openbox_config>
9bbebd
-EOF
9bbebd
-
9bbebd
 (/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
9bbebd
     export DISPLAY=:$D
9bbebd
     cat > ~/seremote << __EOF
9bbebd
-- 
9bbebd
2.21.0
9bbebd