summaryrefslogtreecommitdiffstats
path: root/core/modules/beamergui
diff options
context:
space:
mode:
authorSimon Rettberg2018-12-04 11:17:05 +0100
committerSimon Rettberg2018-12-04 11:17:05 +0100
commitb30afcbd9d49c25af510fb6f7470459cfa578a5a (patch)
treec98638404120ff3509339488919c2d6b87ce80ad /core/modules/beamergui
parent[run-virt] upgrade minimum RAM for VMs to 1024 (diff)
downloadmltk-b30afcbd9d49c25af510fb6f7470459cfa578a5a.tar.gz
mltk-b30afcbd9d49c25af510fb6f7470459cfa578a5a.tar.xz
mltk-b30afcbd9d49c25af510fb6f7470459cfa578a5a.zip
[beamergui] Respawn beamergui if closed
Diffstat (limited to 'core/modules/beamergui')
-rwxr-xr-xcore/modules/beamergui/data/opt/openslx/pvs2/showBeamergui.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/modules/beamergui/data/opt/openslx/pvs2/showBeamergui.sh b/core/modules/beamergui/data/opt/openslx/pvs2/showBeamergui.sh
index e17bbbc7..5f4e2bfa 100755
--- a/core/modules/beamergui/data/opt/openslx/pvs2/showBeamergui.sh
+++ b/core/modules/beamergui/data/opt/openslx/pvs2/showBeamergui.sh
@@ -2,4 +2,11 @@
[ "$EVENT" = "clicked" ] || exit 0
-exec beamergui -w
+if ps u | grep -v grep | grep -q 'beamergui -b'; then
+ exec beamergui -w
+fi
+
+(
+ beamergui -b -g &
+) &
+