Skip to content

Commit e51dbbf

Browse files
cmitujoolswills
authored andcommitted
runcommand: added option to start a WM for x11 programs
Extend the XINIT: launch prefix with two new ones in order to start a window manager before an x11 application is started. XINIT-WM: will start a window manager without the cursor XINIT-WMC: will start a window manager with the cursor This is similar to how the 'x11' backend starts an application, but without additional configuration set in 'backends.cfg'.
1 parent cb597ff commit e51dbbf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scriptmodules/supplementary/runcommand/runcommand.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,12 +1211,20 @@ function get_sys_command() {
12111211
CON)
12121212
CONSOLE_OUT=1
12131213
;;
1214-
# if it starts with XINIT: it is an X11 application (so we need to launch via xinit)
1214+
# if it starts with XINIT it is an X11 application (so we need to launch via xinit)
12151215
XINIT*)
12161216
XINIT=1
1217+
;;&
1218+
# if it starts with XINIT-WM or XINIT-WMC (with cursor) it is an X11 application needing a window manager
1219+
XINIT-WM)
1220+
XINIT_WM=1
1221+
;;
1222+
XINIT-WMC)
1223+
XINIT_WM=2
12171224
;;
12181225
esac
12191226
fi
1227+
12201228
}
12211229
12221230
function show_launch() {

0 commit comments

Comments
 (0)