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