Skip to content

Commit ccbee7c

Browse files
cmitujoolswills
authored andcommitted
ports: simplify the launch command for x11 enabled ports
Removed the launching scripts for ports that were relying an x11 + window manager by using the new XINIT-WM: prefix added to runcommand.
1 parent e51dbbf commit ccbee7c

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

scriptmodules/ports/micropolis.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,7 @@ function remove_micropolis() {
2929

3030
function configure_micropolis() {
3131
local binary="/usr/games/micropolis"
32-
! isPlatform "x11" && binary="XINIT:$md_inst/micropolis.sh"
32+
! isPlatform "x11" && binary="XINIT-WM:/usr/bin/micropolis"
3333

3434
addPort "$md_id" "micropolis" "Micropolis" "$binary"
35-
36-
mkdir -p "$md_inst"
37-
cat >"$md_inst/micropolis.sh" << _EOF_
38-
#!/bin/bash
39-
xset -dpms s off s noblank
40-
matchbox-window-manager &
41-
/usr/games/micropolis
42-
_EOF_
43-
chmod +x "$md_inst/micropolis.sh"
4435
}

scriptmodules/ports/minecraft.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,5 @@ function remove_minecraft() {
2929
}
3030

3131
function configure_minecraft() {
32-
addPort "$md_id" "minecraft" "Minecraft" "XINIT:$md_inst/Minecraft.sh"
33-
34-
cat >"$md_inst/Minecraft.sh" << _EOF_
35-
#!/bin/bash
36-
xset -dpms s off s noblank
37-
matchbox-window-manager &
38-
/usr/bin/minecraft-pi
39-
_EOF_
40-
chmod +x "$md_inst/Minecraft.sh"
32+
addPort "$md_id" "minecraft" "Minecraft" "XINIT-WM:/usr/bin/minecraft-pi"
4133
}

0 commit comments

Comments
 (0)