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

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