diff options
Diffstat (limited to 'core')
-rwxr-xr-x | core/modules/beamergui/data/etc/X11/Xsession.d/99-beamergui-starter_script | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/core/modules/beamergui/data/etc/X11/Xsession.d/99-beamergui-starter_script b/core/modules/beamergui/data/etc/X11/Xsession.d/99-beamergui-starter_script index 981e87ba..a569d671 100755 --- a/core/modules/beamergui/data/etc/X11/Xsession.d/99-beamergui-starter_script +++ b/core/modules/beamergui/data/etc/X11/Xsession.d/99-beamergui-starter_script @@ -1,13 +1,22 @@ #!/bin/ash -/opt/openslx/bin/beamergui -a -# Detach -/bin/bash <<HERE -{ - ulimit -c unlimited - cd /tmp/ - /opt/openslx/bin/beamergui -b & -} & +[ -z "$SLX_KCL_SERVERS" ] && . /opt/openslx/config + +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 |