Skip to content

Commit fbf0a56

Browse files
committed
option to use icewm
1 parent c39c871 commit fbf0a56

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

actions/setup/action.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ inputs:
4848
empty. If an exact match is not found, the latest tag is determined by semver x.y.z.
4949
required: false
5050
display:
51-
description: |
52-
Virtual display used to to open Sublime Text headlessly in Ubuntu. Possible values
53-
are "xvfb" and "turbovnc".
51+
description: internal and experimental only
5452
required: true
5553
default: xvfb
54+
window-manager:
55+
description: internal and experimental only
56+
required: true
57+
default: "icewm"
5658

5759
runs:
5860
using: 'composite'
@@ -104,12 +106,18 @@ runs:
104106
run: |
105107
if [ "${{ inputs.display }}" = "xvfb" ]; then
106108
Xvfb $DISPLAY -screen 0 1024x768x24 -ac +extension GLX +render -noreset &
107-
icewm &
109+
if [ "${{ inputs.window-manager }}" = "icewm" ]; then
110+
icewm &
111+
fi
108112
elif [ "${{ inputs.display }}" = "turbovnc" ]; then
109113
mkdir $HOME/.vnc
110114
echo $RANDOM$RANDOM | vncpasswd -f > $HOME/.vnc/passwd
111115
chmod 0600 $HOME/.vnc/passwd
112-
vncserver $DISPLAY -geometry 1024x768 -depth 24 -wm "icewm"
116+
if [ "${{ inputs.window-manager }}" = "icewm" ]; then
117+
vncserver $DISPLAY -geometry 1024x768 -depth 24 -wm "icewm"
118+
else
119+
vncserver $DISPLAY -geometry 1024x768 -depth 24
120+
fi
113121
fi
114122
shell: bash
115123
- if: runner.os == 'Linux' || runner.os == 'macOS'

0 commit comments

Comments
 (0)