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

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