Skip to content

Commit

Permalink
sandbox: Use matchbox-window-manager instead of openbox
Browse files Browse the repository at this point in the history
  • Loading branch information
bachradsusi committed Dec 14, 2023
1 parent c75be9d commit 9f79f57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
4 changes: 2 additions & 2 deletions sandbox/sandbox
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ class Sandbox:
copyfile(f, "/tmp", self.__tmpdir)
copyfile(f, "/var/tmp", self.__tmpdir)

def __setup_sandboxrc(self, wm="/usr/bin/openbox"):
def __setup_sandboxrc(self, wm="/usr/bin/matchbox-window-manager"):
execfile = self.__homedir + "/.sandboxrc"
fd = open(execfile, "w+")
if self.__options.session:
Expand Down Expand Up @@ -369,7 +369,7 @@ sandbox [-h] [-l level ] [-[X|M] [-H homedir] [-T tempdir]] [-I includefile ] [-

parser.add_option("-W", "--windowmanager", dest="wm",
type="string",
default="/usr/bin/openbox",
default="/usr/bin/matchbox-window-manager",
help=_("alternate window manager"))

parser.add_option("-l", "--level", dest="level",
Expand Down
2 changes: 1 addition & 1 deletion sandbox/sandbox.8
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Specifies the windowsize when creating an X based Sandbox. The default windowsiz
\fB\-W\fR \fB\-\-windowmanager\fR
Select alternative window manager to run within
.B sandbox \-X.
Default to /usr/bin/openbox.
Default to /usr/bin/matchbox-window-manager.
.TP
\fB\-X\fR
Create an X based Sandbox for gui apps, temporary files for
Expand Down
14 changes: 0 additions & 14 deletions sandbox/sandboxX.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,6 @@ export TITLE="Sandbox $context -- `grep ^#TITLE: ~/.sandboxrc | /usr/bin/cut -b8
[ -z $2 ] && export DPI="96" || export DPI="$2"
trap "exit 0" HUP

mkdir -p ~/.config/openbox
cat > ~/.config/openbox/rc.xml << EOF
<openbox_config xmlns="http://openbox.org/3.4/rc"
xmlns:xi="http://www.w3.org/2001/XInclude">
<applications>
<application class="*">
<decor>no</decor>
<desktop>all</desktop>
<maximized>yes</maximized>
</application>
</applications>
</openbox_config>
EOF

(/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
export DISPLAY=:$D
cat > ~/seremote << __EOF
Expand Down

0 comments on commit 9f79f57

Please sign in to comment.