File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,13 @@ inputs:
48
48
empty. If an exact match is not found, the latest tag is determined by semver x.y.z.
49
49
required : false
50
50
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
54
52
required : true
55
53
default : xvfb
54
+ window-manager :
55
+ description : internal and experimental only
56
+ required : true
57
+ default : " icewm"
56
58
57
59
runs :
58
60
using : ' composite'
@@ -104,12 +106,18 @@ runs:
104
106
run : |
105
107
if [ "${{ inputs.display }}" = "xvfb" ]; then
106
108
Xvfb $DISPLAY -screen 0 1024x768x24 -ac +extension GLX +render -noreset &
107
- icewm &
109
+ if [ "${{ inputs.window-manager }}" = "icewm" ]; then
110
+ icewm &
111
+ fi
108
112
elif [ "${{ inputs.display }}" = "turbovnc" ]; then
109
113
mkdir $HOME/.vnc
110
114
echo $RANDOM$RANDOM | vncpasswd -f > $HOME/.vnc/passwd
111
115
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
113
121
fi
114
122
shell : bash
115
123
- if : runner.os == 'Linux' || runner.os == 'macOS'
You can’t perform that action at this time.
0 commit comments