summaryrefslogtreecommitdiffstats
path: root/core/modules/beamergui/data/etc/X11/Xsession.d/99-beamergui-starter_script
blob: ff75c849e4a8da810ae48707c7f2447b06276283 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/ash

[ -z "$SLX_KCL_SERVERS" ] && . /opt/openslx/config

# HACK: Don't interfere when we're in remote access mode
[ -n "$SLX_REMOTE_VNC" ] && return 0

if [ -z "$SLX_FORCE_RESOLUTION" ]; then
	/opt/openslx/bin/beamergui -a
	# Detach
	/bin/bash <<HERE
	{
		ulimit -c unlimited
		cd /tmp/
		/opt/openslx/bin/beamergui -b &
	} &
HERE
elif [ -z "$SLX_RESOLUTION_MAPPING" ]; then
	/opt/openslx/bin/beamergui --resolutions "$SLX_FORCE_RESOLUTION"
else
	/opt/openslx/bin/beamergui --resolutions "$SLX_FORCE_RESOLUTION" --mapping "$SLX_RESOLUTION_MAPPING"
fi

true